Skip to content

feat(isPostalCode): add NG locale - #2904

Open
Adeniyikayodee wants to merge 1 commit into
validatorjs:masterfrom
Adeniyikayodee:feat/ispostalcode-ng
Open

Adeniyikayodee wants to merge 1 commit into
validatorjs:masterfrom
Adeniyikayodee:feat/ispostalcode-ng

Conversation

@Adeniyikayodee

Copy link
Copy Markdown

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

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

@codecov

codecov Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9ff3424) to head (c2e8114).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant