Skip to content

Commit aba0d82

Browse files
Merge pull request #136 from Shopify/extant-outcodes-gb
[WIP] Improve outcode heuristics for partial postal codes
2 parents 2bcd6a5 + b576e8c commit aba0d82

File tree

7 files changed

+3358
-51
lines changed

7 files changed

+3358
-51
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3131
- Re-introduce city from UAE address form and disable city autofill [#131](https://github.com/Shopify/worldwide/pull/131)
3232
- Add translations for regionalized zip_unknown_for_address, province_unknown_for_address [#125](https://github.com/Shopify/worldwide/pull/125), [#126](https://github.com/Shopify/worldwide/pull/126)
3333
- Remove city from UAE address form and enable city autofill [#127](https://github.com/Shopify/worldwide/pull/127)
34+
- Add logic for known-to-exist extant outcodes for GB [#136](https://github.com/Shopify/worldwide/pull/136)
35+
3436
---
3537

3638
## [0.10.3] - 2024-03-14

db/data/regions/GB.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ignore_zones: true
1111
group: European Countries
1212
group_name: Europe
1313
zip_label: Postcode
14-
zip_regex: "\\A[A-Za-z]{1,2}[\\d]{1,2}(?:[A-Za-z])?\\s?[\\d][A-Za-z]{2}\\z|\\ABFPO\\s\\d{1,3}\\z"
14+
zip_regex: '\A[A-Za-z]{1,2}[\d]{1,2}(?:[A-Za-z])?\s?[\d][A-Za-z]{2}\z'
1515
partial_zip_regex: "^[A-Z]{1,2}[0-9]{1,2}[A-Z]?$"
1616
zip_example: SE22 8DL
1717
phone_number_prefix: 44

0 commit comments

Comments
 (0)