fixed the BR postcode validation
This commit is contained in:
parent
538d776d3f
commit
91193c5dac
|
@ -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