1
0
mirror of synced 2024-12-14 07:06:04 +03:00

fixes #484, validator nospace not validating correctly

This commit is contained in:
zYne 2007-10-16 22:12:04 +00:00
parent b102ebf9fb
commit 359d07b04d

View File

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