Merge pull request #14891 from woocommerce/zipcode-validation-FR
Add zipcode validation for France
This commit is contained in:
commit
d39e317182
|
@ -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' :
|
||||
|
|
Loading…
Reference in New Issue