From 9409f2651e02b9019be5e0ff80d99b7a1459acd0 Mon Sep 17 00:00:00 2001 From: jperras Date: Wed, 30 Sep 2009 00:04:46 -0400 Subject: [PATCH] Removing deprecated validation constants of VALID_NOT_EMPTY, VALID_NUMBER, VALID_EMAIL and VALID_YEAR. --- cake/libs/validation.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/cake/libs/validation.php b/cake/libs/validation.php index 1ce874a86..2dca4af32 100644 --- a/cake/libs/validation.php +++ b/cake/libs/validation.php @@ -26,30 +26,6 @@ * @license http://www.opensource.org/licenses/mit-license.php The MIT License */ -/** - * Deprecated - */ - -/** - * Not empty. - */ - define('VALID_NOT_EMPTY', '/.+/'); - -/** - * Numbers [0-9] only. - */ - define('VALID_NUMBER', '/^[-+]?\\b[0-9]*\\.?[0-9]+\\b$/'); - -/** - * A valid email address. - */ - define('VALID_EMAIL', "/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[a-z]{2,4}|museum|travel)$/i"); - -/** - * A valid year (1000-2999). - */ - define('VALID_YEAR', '/^[12][0-9]{3}$/'); - /** * Offers different validation methods. *