Update UUID pattern to accept the 'nil' UUID.

Fixes #4133
This commit is contained in:
mark_story 2013-10-10 21:11:37 -04:00
parent 04eae1fc24
commit 5aa8a458b1
2 changed files with 2 additions and 1 deletions

View file

@ -797,7 +797,7 @@ class Validation {
* @return boolean Success
*/
public static function uuid($check) {
$regex = '/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[1-5][a-fA-F0-9]{3}-[89aAbB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/';
$regex = '/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[0-5][a-fA-F0-9]{3}-[089aAbB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/';
return self::_check($check, $regex);
}