Skip to content

Add Peru postal code validation - #2850

Open
RT1811 wants to merge 1 commit into
validatorjs:masterfrom
RT1811:add-peru-postal-code
Open

Add Peru postal code validation#2850
RT1811 wants to merge 1 commit into
validatorjs:masterfrom
RT1811:add-peru-postal-code

Conversation

@RT1811

@RT1811 RT1811 commented Aug 14, 2026

Copy link
Copy Markdown

Adds support for Peruvian postal codes to isPostalCode.

Changes:

  • Added PE postal code validation
  • Added valid and invalid Peru test cases
  • Added PE to the supported locales in the README

Closes #2757

@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (cdb7daf) to head (687e0a3).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2850   +/-   ##
=========================================
  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.

Add Postal Code Peru

1 participant