refixed the BR postcode validation
This commit is contained in:
parent
91193c5dac
commit
995b672c8a
|
@ -58,7 +58,7 @@ class WC_Validation {
|
|||
else
|
||||
return false;
|
||||
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;
|
||||
else
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue