Skip to content

Conversation

@Sagar141005
Copy link

This PR adds support for validating Icelandic mobile phone numbers (is-IS) in the isMobilePhone validator.
Specifically:

  • Added a regex for Iceland in src/lib/isMobilePhone.js: 'is-IS': /^(\+?354|0)[5-8]\d{6}$/
  • Added tests in test/validators.test.js covering valid and invalid Icelandic phone numbers.
  • Updated README.md to include is-IS as a supported locale.

References:

Checklist

  • - PR contains only changes related; no stray files, etc.
  • - README updated (where applicable)
  • - Tests written (where applicable)
  • - References provided in PR (where applicable)

Issue: #1761

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (784e52a) to head (41c2bdb).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2654   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines         2572      2572           
  Branches       651       651           
=========================================
  Hits          2572      2572           

☔ View full report in Codecov by Sentry.
📢 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