RE: [PEAR-DEV] Quickform nonzero rule bug (?)

From: Date: Wed, 25 Jun 2003 14:24:18 +0000
Subject: RE: [PEAR-DEV] Quickform nonzero rule bug (?)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17701@lists.php.net to get a copy of this message
On Wednesday, June 25, 2003 5:22 AM, mailto:jeroen@terena.nl wrote: >>> Anything below 10 won't validate. The rule on line 226 of >>> Quickform.php is: >>> >>> 'nonzero' =>array('regex', >>> '/^[1-9][0-9]+/'), >>> >>> Regex is not my strongest point, can anyone tell me of this looks >>> right? It looks like it expect two digits.. >>> >>> >> >> Hi Jeroen, >> >> You can probably use this regex instead: /^[1-9][0-9]?/ >> >> > Yep that works better. Any number except 0 will validate. Will you > change it in CVS? I reported this a month ago (http://bugs.php.net/bug.php?id=23762) and it was fixed and then rolled back. David

« previous php.pear.dev (#17701) next »