added BR postcode validation
This commit is contained in:
parent
1c6e63fe0a
commit
bb2cc2b035
|
@ -57,6 +57,11 @@ class WC_Validation {
|
|||
return true;
|
||||
else
|
||||
return false;
|
||||
case "BR" :
|
||||
if ( preg_match( "/^[0-9]{5,5}([-]?[0-9]{3,3})?$/", $postcode ) )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue