[pLog-svn] r3256 - plog/trunk/class/data/validator/rules

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Tue Apr 18 13:49:21 GMT 2006


Author: jondaley
Date: 2006-04-18 13:49:20 +0000 (Tue, 18 Apr 2006)
New Revision: 3256

Modified:
   plog/trunk/class/data/validator/rules/emailformatrule.class.php
Log:
forgot that the '-' needs to be at the end, otherwise the regexp parser tries to make it a range

Modified: plog/trunk/class/data/validator/rules/emailformatrule.class.php
===================================================================
--- plog/trunk/class/data/validator/rules/emailformatrule.class.php	2006-04-17 23:40:26 UTC (rev 3255)
+++ plog/trunk/class/data/validator/rules/emailformatrule.class.php	2006-04-18 13:49:20 UTC (rev 3256)
@@ -1,8 +1,8 @@
 <?php
 
     include_once(PLOG_CLASS_PATH."class/data/validator/rules/regexprule.class.php");
+    define( "EMAIL_FORMAT_RULE_REG_EXP", "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9]+([.-]?[a-zA-Z0-9])+\.[a-zA-Z]{2,4}");
 
-    define( "EMAIL_FORMAT_RULE_REG_EXP", "^[a-zA-Z0-9-_.+]+@[a-zA-Z0-9]+([-.]?[a-zA-Z0-9])+\.[a-zA-Z]{2,4}");
     define( "ERROR_RULE_EMAIL_FORMAT_WRONG", "error_rule_email_format_wrong");
 
     /**



More information about the pLog-svn mailing list