Skip to content
Browse files

I know escaping "-" in character classes is not the best one might do…

…, but since user should be able to concat these constants the way he wish, it seems to be the cheapest solution

git-svn-id: http://svn.php.net/repository/pear/packages/Validate/trunk@282829 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 41fabfe commit 1d0cd38538e6ccaac758abf925b0ba7eb54a9f18 @amir amir committed Jun 26, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 Validate.php
View
2 Validate.php
@@ -49,7 +49,7 @@
define('VALIDATE_EALPHA_UPPER', VALIDATE_ALPHA_UPPER . 'ÁÉÍÓÚÝÀÈÌÒÙÄËÏÖܾÂÊÎÔÛÃÑÕ¦ÅÆǼÐØÞ');
define('VALIDATE_EALPHA', VALIDATE_EALPHA_LOWER . VALIDATE_EALPHA_UPPER);
define('VALIDATE_PUNCTUATION', VALIDATE_SPACE . '\.,;\:&"\'\?\!\(\)');
-define('VALIDATE_NAME', VALIDATE_EALPHA . VALIDATE_SPACE . "'" . "-");
+define('VALIDATE_NAME', VALIDATE_EALPHA . VALIDATE_SPACE . "'" . '\-');
define('VALIDATE_STREET', VALIDATE_NUM . VALIDATE_NAME . "/\\ºª\.");
define('VALIDATE_ITLD_EMAILS', 1);

0 comments on commit 1d0cd38

Please sign in to comment.
Something went wrong with that request. Please try again.