diff --git a/lib/Doctrine/Validator/Nospace.php b/lib/Doctrine/Validator/Nospace.php index ee744f310..359d0d2a9 100644 --- a/lib/Doctrine/Validator/Nospace.php +++ b/lib/Doctrine/Validator/Nospace.php @@ -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/', $value)); } }