From 96bfb45b023053d3cd81f6704f9c76680ccb90b6 Mon Sep 17 00:00:00 2001 From: corsonr Date: Fri, 5 May 2017 09:52:03 +0200 Subject: [PATCH] Add zipcode validation for France Add zipcode validation for France and oversea territory. --- includes/class-wc-validation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/class-wc-validation.php b/includes/class-wc-validation.php index b5d0c818167..8e5bd0ccba1 100644 --- a/includes/class-wc-validation.php +++ b/includes/class-wc-validation.php @@ -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' :