Skip to content

feat(isMobilePhone): add en-SZ support - #2871

Open
Musaamanipeace wants to merge 1 commit into
validatorjs:masterfrom
Musaamanipeace:feat/add-en-SZ-mobile-phone
Open

feat(isMobilePhone): add en-SZ support#2871
Musaamanipeace wants to merge 1 commit into
validatorjs:masterfrom
Musaamanipeace:feat/add-en-SZ-mobile-phone

Conversation

@Musaamanipeace

Copy link
Copy Markdown

Closes #1761

Adds mobile phone validation support for Eswatini (en-SZ).

Added regular expression pattern for Eswatini to src/lib/isMobilePhone.js

Added valid and invalid unit test cases to test/validators/isMobilePhone.js

Updated isMobilePhone supported locales list in README.md

Add regex pattern to support mobile phone number validation for
Swaziland (en-SZ).
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a79ff98) to head (966f1ee).

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

2 participants