Skip to content
Permalink
Browse files

Removing deprecated validation constants of VALID_NOT_EMPTY, VALID_NU…

…MBER, VALID_EMAIL and VALID_YEAR.
  • Loading branch information...
jperras committed Sep 30, 2009
1 parent a061472 commit 9409f2651e02b9019be5e0ff80d99b7a1459acd0
Showing with 0 additions and 24 deletions.
  1. +0 −24 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.
*

0 comments on commit 9409f26

Please sign in to comment.
You can’t perform that action at this time.