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

Jon Daley plogworld at jon.limedaley.com
Wed Jul 5 16:38:22 GMT 2006


 	No comma is needed.
On Wed, 5 Jul 2006, oscar at devel.lifetype.net wrote:

> Author: oscar
> Date: 2006-07-05 15:27:21 +0000 (Wed, 05 Jul 2006)
> New Revision: 3692
>
> Modified:
>   plog/trunk/class/data/validator/rules/intrule.class.php
> Log:
> signed integers can have both '+' and '-' sign
>
>
> Modified: plog/trunk/class/data/validator/rules/intrule.class.php
> ===================================================================
> --- plog/trunk/class/data/validator/rules/intrule.class.php	2006-07-05 14:41:07 UTC (rev 3691)
> +++ plog/trunk/class/data/validator/rules/intrule.class.php	2006-07-05 15:27:21 UTC (rev 3692)
> @@ -2,7 +2,7 @@
>
>     include_once(PLOG_CLASS_PATH."class/data/validator/rules/regexprule.class.php");
>
> -    define( "INT_RULE_REG_EXP", "^(-?[1-9][0-9]*)|0$");
> +    define( "INT_RULE_REG_EXP", "^([+,-]?[1-9][0-9]*)|0$");
>     define( "ERROR_RULE_INT_FORMAT_WRONG", "error_rule_int_format_wrong");
>
>     /**
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

He who laughs last is generally the last to get the joke.
-- Terry Cohen


More information about the pLog-svn mailing list