Feat: Mobile Phone validations Add Mexico
Fixes: Mobile Phone validations - For The First Time Contributors #1761
Add Mobile Phone validation of Mexico
Screenshot:
Checklist
✅ PR contains only changes related; no stray files, etc. ✅ README updated (where applicable) ✅ Tests written (where applicable) ✅ References provided in PR (where applicable)
Also add references and tests
@rubiin I have added the references and tests.
By reference , I mean a post that vouches for the regex.
Generally speaking is "en-MX" correct here? Wouldn't be "es-MX" be more appropriate, or am I wrong here?
The correct country code for Mexico is MX, and the locale code for Spanish spoken in Mexico is es-MX and code for English spoken in Mexico is en-MX.
Added in Alphabetical order
and here is the Reference- https://en.wikipedia.org/wiki/Telephone_numbers_in_Mexico