Skip to content

Add Republic of the Congo mobile phone validation - #2947

Open
dansoevans wants to merge 1 commit into
validatorjs:masterfrom
dansoevans:feat/issue-1761-fr-cg-mobile
Open

dansoevans wants to merge 1 commit into
validatorjs:masterfrom
dansoevans:feat/issue-1761-fr-cg-mobile

Conversation

@dansoevans

Copy link
Copy Markdown

What changed

Adds the fr-CG locale for Republic of the Congo mobile numbers. The pattern accepts the +242 country code and nine-digit national numbers, including the assigned 01, 04, 05, and 06 mobile prefixes and specified mobile ranges under 02. The supported-locale list in the README and the phone validator tests are updated.

The pattern is based on the ITU numbering-plan notice submitted by ARPCE.

Verification

  • npm test passes: build, lint, and 323 tests.
  • The new fixture covers accepted and rejected formats.

Checklist

  • PR contains only related changes.
  • README updated.
  • Tests written.
  • Reference provided.

Fixes #1761

@codecov

codecov Bot commented Oct 25, 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 (b8cd6d0).

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

Mobile Phone validations - For The First Time Contributors

1 participant