Skip to content

feat(isMobilePhone): add Samoa (sm-WS, en-WS) mobile validation - #2985

Open
ShubhAgarwal-Tech wants to merge 1 commit into
validatorjs:masterfrom
ShubhAgarwal-Tech:feat/add-samoa-mobile-phone
Open

ShubhAgarwal-Tech wants to merge 1 commit into
validatorjs:masterfrom
ShubhAgarwal-Tech:feat/add-samoa-mobile-phone

Conversation

@ShubhAgarwal-Tech

Copy link
Copy Markdown

Adds mobile phone number validation for Samoa (sm-WS and alias en-WS).

  • Country calling code: +685 (optional + or 00 prefix)
  • Mobile subscriber format: 7 digits starting with 7
  • Added unit tests for both sm-WS and en-WS
  • Updated supported locales list in README.md

Related to #1761

@codecov

codecov Bot commented Dec 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 (efd5785).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2985   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines         2599      2600    +1     
  Branches       658       658           
=========================================
+ Hits          2599      2600    +1     

☔ 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