1
0
mirror of synced 2025-03-22 07:53:49 +03:00
This commit is contained in:
jepso 2007-10-17 14:50:55 +00:00
parent 3e39fcf30c
commit d9e213a2cf

View File

@ -40,6 +40,6 @@ class Doctrine_Validator_Nospace extends Doctrine_Validator_Driver
*/ */
public function validate($value) public function validate($value)
{ {
return ($value === null || ! preg_match('/[\s\t\r\n]/', $value)); return ($value === null || ! preg_match('/\s/', $value));
} }
} }