diff --git a/data/regions/AC.yml b/data/regions/AC.yml index c9c48fdd..838816d5 100644 --- a/data/regions/AC.yml +++ b/data/regions/AC.yml @@ -10,7 +10,7 @@ code: AC unit_system: metric currency: SHP zip_example: ASCN 1ZZ -zip_regex: "\\A[Aa][Ss][Cc][Nn]\\s*1[Zz][Zz]\\z" +zip_regex: "^[Aa][Ss][Cc][Nn]\\s*1[Zz][Zz]$" phone_number_prefix: 247 zip_autofill_enabled: true format: diff --git a/data/regions/CA.yml b/data/regions/CA.yml index d5a3514e..1bbe81b9 100644 --- a/data/regions/CA.yml +++ b/data/regions/CA.yml @@ -5,7 +5,7 @@ tax: 0.05 currency: CAD unit_system: metric tax_name: GST -zip_regex: "\\A[A-Za-z]\\d[A-Za-z]\\s*\\d[A-Za-z]\\d\\z" +zip_regex: "^[A-Za-z]\\d[A-Za-z]\\s*\\d[A-Za-z]\\d$" partial_zip_regex: "^[A-Z][0-9][A-Z]$" group: North American Countries group_name: North America diff --git a/data/regions/IN.yml b/data/regions/IN.yml index 7e31ec50..60bb4385 100644 --- a/data/regions/IN.yml +++ b/data/regions/IN.yml @@ -8,7 +8,7 @@ tax_name: CGST tax_inclusive: true group: Asian Countries group_name: Asia -zip_regex: "\\A\\d{6}\\z" +zip_regex: "^\\d{6}$" zip_example: '110034' phone_number_prefix: 91 week_start_day: monday diff --git a/data/regions/JP.yml b/data/regions/JP.yml index 5881ad07..a1c8c355 100644 --- a/data/regions/JP.yml +++ b/data/regions/JP.yml @@ -9,8 +9,8 @@ tax_inclusive: true group: Asian Countries group_name: Asia zip_example: 154-0023 -zip_regex: "\\A〒?(\\d{7}|[0-9|0-9]{3}(-|ー)[0-9|0-9]{4})\\z" -partial_zip_regex: "\\A〒?([0-9|0-9]{0,3})(-|ー?)([0-9|0-9]{0,4})\\z" +zip_regex: "^〒?(\\d{7}|[0-9|0-9]{3}(-|ー)[0-9|0-9]{4})$" +partial_zip_regex: "^〒?([0-9|0-9]{0,3})(-|ー?)([0-9|0-9]{0,4})$" phone_number_prefix: 81 building_number_required: true building_number_may_be_in_address2: true diff --git a/data/regions/KR.yml b/data/regions/KR.yml index 50b76405..660648fc 100644 --- a/data/regions/KR.yml +++ b/data/regions/KR.yml @@ -7,7 +7,7 @@ unit_system: metric tax_name: VAT group: Asian Countries group_name: Asia -zip_regex: "\\A(\\d{5}|\\d{3}-\\d{3})\\z" +zip_regex: "^(\\d{5}|\\d{3}-\\d{3})$" zip_example: '01600' phone_number_prefix: 82 week_start_day: sunday diff --git a/data/regions/MQ.yml b/data/regions/MQ.yml index c6948b7f..3b685c30 100644 --- a/data/regions/MQ.yml +++ b/data/regions/MQ.yml @@ -13,7 +13,7 @@ group_name: Central America tags: - EU-OMR zip_example: '97220' -zip_regex: "\\A(MQ-?)?((972)\\d{2,2})\\z" +zip_regex: "^(MQ-?)?((972)\\d{2,2})$" phone_number_prefix: 596 format: edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}_{phone}" diff --git a/data/regions/NL.yml b/data/regions/NL.yml index df9ee477..aaf3b8f8 100644 --- a/data/regions/NL.yml +++ b/data/regions/NL.yml @@ -10,7 +10,7 @@ group: European Countries group_name: Europe tags: - EU-member -zip_regex: "(?-mix:\\A[1-9][0-9]{3} ?[A-Z]{2}\\z)" +zip_regex: "^[1-9][0-9]{3} ?[A-Z]{2}$" partial_zip_regex: "^\\d{4}$" zip_example: 1065 AM phone_number_prefix: 31 diff --git a/data/regions/NZ.yml b/data/regions/NZ.yml index b33c9535..076200c8 100644 --- a/data/regions/NZ.yml +++ b/data/regions/NZ.yml @@ -8,7 +8,7 @@ tax_name: GST tax_inclusive: true group: Oceanian Countries group_name: Oceania -zip_regex: "\\A\\d{4}\\z" +zip_regex: "^\\d{4}$" zip_example: '6001' phone_number_prefix: 64 building_number_required: true diff --git a/data/regions/PH.yml b/data/regions/PH.yml index fd8182ca..b8859e14 100644 --- a/data/regions/PH.yml +++ b/data/regions/PH.yml @@ -8,7 +8,7 @@ tax_name: VAT zone_key: province group: Asian Countries group_name: Asia -zip_regex: "\\A\\d{4}\\z" +zip_regex: "^\\d{4}$" zip_example: '1008' phone_number_prefix: 63 week_start_day: sunday diff --git a/data/regions/PM.yml b/data/regions/PM.yml index de50a5f8..73eb5f77 100644 --- a/data/regions/PM.yml +++ b/data/regions/PM.yml @@ -12,7 +12,7 @@ tags: - EU-OCT zip_example: '97500' phone_number_prefix: 508 -zip_regex: "\\A(PM-?)?((975)\\d{2,2})\\z" +zip_regex: "^(PM-?)?((975)\\d{2,2})$" format: edit: "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{zip}{city}_{phone}" show: "{firstName} {lastName}_{company}_{address1}_{address2}_{zip} {city}_{country}_{phone}" diff --git a/data/regions/SA.yml b/data/regions/SA.yml index dcac7e55..fa9e44ae 100644 --- a/data/regions/SA.yml +++ b/data/regions/SA.yml @@ -5,7 +5,7 @@ tax: 0.15 currency: SAR unit_system: metric tax_name: VAT -zip_regex: "(?-mix:\\A\\d{5}(-\\d{4})?\\z)" +zip_regex: "^\\d{5}(-\\d{4})?$" zip_requirement: optional group: Asian Countries group_name: Asia diff --git a/data/regions/TA.yml b/data/regions/TA.yml index cae5ef32..29cd9bc3 100644 --- a/data/regions/TA.yml +++ b/data/regions/TA.yml @@ -9,7 +9,7 @@ unit_system: metric # Source: https://en.wikipedia.org/wiki/Saint_Helena_pound currency: GBP zip_example: TDCU 1ZZ -zip_regex: "\\A[Tt][Dd][Cc][Uu]\\s*1[Zz][Zz]\\z" +zip_regex: "^[Tt][Dd][Cc][Uu]\\s*1[Zz][Zz]$" phone_number_prefix: 2908 zip_autofill_enabled: true autofill_city_enabled: true diff --git a/data/regions/UA.yml b/data/regions/UA.yml index 2876e828..84bad1d8 100644 --- a/data/regions/UA.yml +++ b/data/regions/UA.yml @@ -9,7 +9,7 @@ tax_inclusive: true group: European Countries group_name: Europe zip_example: '15432' -zip_regex: "\\A\\d{5}\\z" +zip_regex: "^\\d{5}$" phone_number_prefix: 380 week_start_day: monday format: diff --git a/data/regions/US.yml b/data/regions/US.yml index ac41099d..ef78cf3b 100644 --- a/data/regions/US.yml +++ b/data/regions/US.yml @@ -10,7 +10,7 @@ group_name: North America name_alternates: - United States of America zip_label: Zip code -zip_regex: "(?-mix:\\A\\d{5}(-\\d{4})?\\z)" +zip_regex: "^\\d{5}(-\\d{4})?$" zip_example: '90210' phone_number_prefix: 1 building_number_required: true