fixes #484, validator nospace not validating correctly
This commit is contained in:
parent
b102ebf9fb
commit
359d07b04d
@ -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));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user