refixed the BR postcode validation
This commit is contained in:
parent
91193c5dac
commit
995b672c8a
|
@ -58,7 +58,7 @@ class WC_Validation {
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
case "BR" :
|
case "BR" :
|
||||||
if ( preg_match( "/^[0-9]{5,5}([-]?)([0-9]{3,3})$/", $postcode ) )
|
if ( preg_match( "/^([0-9]{5,5})([-])?([0-9]{3,3})$/", $postcode ) )
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue