From f92c416b2fb3e5e6c6be119798b43af8541b145a Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 11 Oct 2012 15:21:08 +0000 Subject: [PATCH] //small fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17837 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Validate.php b/classes/Validate.php index 15c131538..588ae22e5 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -262,7 +262,7 @@ class ValidateCore public static function isStateIsoCode($iso_code) { - return preg_match('/^[a-zA-Z0-9]{1,3}((-)[a-zA-Z0-9]{1,3})?$/', $iso_code); + return preg_match('/^[a-zA-Z0-9]{1,4}((-)[a-zA-Z0-9]{1,4})?$/', $iso_code); } public static function isNumericIsoCode($iso_code)