From d9e213a2cfb5c5979b021eeac2542d30f3cecc24 Mon Sep 17 00:00:00 2001 From: jepso Date: Wed, 17 Oct 2007 14:50:55 +0000 Subject: [PATCH] fixes #484 --- lib/Doctrine/Validator/Nospace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }