Commit 359d07b0 authored by zYne's avatar zYne

fixes #484, validator nospace not validating correctly

parent b102ebf9
......@@ -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));
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment