Repository navigation
feat(isPostalCode): add NG locale - #2904
Adeniyikayodee wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2904 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 114 114
Lines 2599 2599
Branches 658 658
=========================================
Hits 2599 2599 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@rubiin @tux-tn, I would be grateful for your review of this whenever your time allows. It adds Nigeria to |
|
@rubiin, I would be grateful if you could look at this whenever your time allows. Nigeria launched a new national postcode on 1 October, and |
|
@tux-tn, a gentle follow-up on this one. @rubiin has approved it, and I believe a second review is all it needs before it can merge. It is a single pattern with its tests, and all checks pass. Nigeria's new postcodes have been in use since 1 October, so I would be grateful if you could take a look whenever your time allows. Thank you for maintaining the library. |
|
@tux-tn @WikiRik, a short update in case it helps with review. Google updated the Nigeria entry in its address data today, using the same rule as this PR. The discussion is in google/libaddressinput#255, and the live data is at https://chromium-i18n.appspot.com/ssl-address/data/NG. Thank you for your time, and no rush. |
Adds Nigeria to
isPostalCode.On 1 October 2026 Nigeria launched the National Digital Alphanumeric Postcode System (NDAPS), which gives every building an 11-character code: state (2 letters), LGA (2 digits, 01 to 99), district (3 letters or digits), area (2 letters), and building unit (2 digits, 01 to 99). It is written with hyphens (
EK-01-A03-FK-01), with spaces (EK 01 A03 FK 01), or compact (EK01A03FK01), in either case.The rule also accepts the six-digit postal code that came before it, which is still in circulation.
References
postcode-validator: fix: accept Nigeria's new 11-character postcode melwynfurtado/postcode-validator#302Checklist