validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

adding more countries to isMobilePhone.js

Open RahulSingh044 opened this issue 1 year ago • 1 comments

Overview

This pull request enhances the isMobilePhone functionality by adding support for mobile phone number validation for several additional countries. The goal is to expand the reach of our validation library and ensure it accommodates a wider range of international phone formats.

Changes Made

New Countries Added : Introduced regex patterns for the following countries:

  • Germany (de-DE)
  • Vanuatu (en-VU)
  • Monaco (fr-MC)
  • Liechtenstein (de-LI)
  • Côte d'Ivoire (fr-CI)
  • Eswatini (en-SZ)

Regex Patterns: Implemented specific regular expressions tailored to the mobile number formats of each newly added country, ensuring accurate validation.

Checklist

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

RahulSingh044 avatar Sep 30 '24 05:09 RahulSingh044

please add tests and reference and update the checklist

rubiin avatar Sep 30 '24 10:09 rubiin