fixes #484, validator nospace not validating correctly
This commit is contained in:
parent
b102ebf9fb
commit
359d07b04d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue