mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Removing deprecated validation constants of VALID_NOT_EMPTY, VALID_NUMBER, VALID_EMAIL and VALID_YEAR.
This commit is contained in:
parent
a06147272d
commit
9409f2651e
1 changed files with 0 additions and 24 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue