fixed the BR postcode validation

This commit is contained in:
claudiosmweb 2013-10-18 16:03:27 -03:00
parent 538d776d3f
commit 91193c5dac
1 changed files with 1 additions and 1 deletions

View File

@ -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;