cvs: pear /Validate/Validate AT.php
| From: | Byron Adams | Date: | Wed, 30 Aug 2006 12:11:26 +0000 |
| Subject: | cvs: pear /Validate/Validate AT.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41919@lists.php.net to get a copy of this message | ||
badams Wed Aug 30 12:11:26 2006 UTC
Modified files:
/pear/Validate/Validate AT.php
Log:
- restablished support for dashes and spaces in region()
http://cvs.php.net/viewvc.cgi/pear/Validate/Validate/AT.php?r1=1.21&r2=1.22&diff_format=u
Index: pear/Validate/Validate/AT.php
diff -u pear/Validate/Validate/AT.php:1.21 pear/Validate/Validate/AT.php:1.22
--- pear/Validate/Validate/AT.php:1.21 Wed Aug 30 09:35:30 2006
+++ pear/Validate/Validate/AT.php Wed Aug 30 12:11:25 2006
@@ -25,7 +25,7 @@
* @copyright 1997-2005 Michael Wallner
* @copyright (c) 2006 Byron Adams
* @license http://www.opensource.org/licenses/bsd-license.php
New BSD License
- * @version CVS: $Id: AT.php,v 1.21 2006/08/30 09:35:30 badams Exp $
+ * @version CVS: $Id: AT.php,v 1.22 2006/08/30 12:11:25 badams Exp $
* @link http://pear.php.net/package/Validate_AT
*/
@@ -113,7 +113,7 @@
*/
function region($region)
{
- $region = str_ireplace("AU","",$region);
+ $region = str_ireplace(array("AU", "-", " "), "",
$region);
if (!ctype_digit($region)) {
return false;