Merge pull request #14891 from woocommerce/zipcode-validation-FR

Add zipcode validation for France
This commit is contained in:
Claudio Sanches 2017-05-05 17:07:42 -03:00 committed by GitHub
commit d39e317182
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class WC_Validation {
$valid = (bool) preg_match( '/^([0]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{3}$/', $postcode );
break;
case 'ES' :
case 'FR' :
$valid = (bool) preg_match( '/^([0-9]{5})$/i', $postcode );
break;
case 'GB' :