Skip to content

feat(isMobilePhone): add fr-NC and fr-PM locales - #2964

Open
rezk2ll wants to merge 1 commit into
validatorjs:masterfrom
rezk2ll:feat/is-mobile-phone-fr-nc-pm
Open

rezk2ll wants to merge 1 commit into
validatorjs:masterfrom
rezk2ll:feat/is-mobile-phone-fr-nc-pm

Conversation

@rezk2ll

@rezk2ll rezk2ll commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Adds mobile phone validation for New Caledonia (+687) and Saint-Pierre-et-Miquelon (+508), following the mobile ranges in libphonenumber's metadata. Landline ranges are rejected.

#2308 also adds Saint-Pierre-et-Miquelon, but it accepts any 6 digits under a pm-PM locale and no longer merges cleanly.

Refs #1761

@codecov

codecov Bot commented Nov 18, 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 (fbdb9e6).

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