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

Feat: Mobile Phone validations Add Mexico

Open anonYmousFPP opened this issue 1 year ago • 6 comments

Fixes: Mobile Phone validations - For The First Time Contributors #1761

Add Mobile Phone validation of Mexico

Screenshot:

Screenshot 2024-09-25 201510

Screenshot 2024-09-25 201518

Checklist

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

anonYmousFPP avatar Sep 25 '24 14:09 anonYmousFPP

Also add references and tests

rubiin avatar Sep 25 '24 14:09 rubiin

@rubiin I have added the references and tests.

anonYmousFPP avatar Sep 25 '24 17:09 anonYmousFPP

By reference , I mean a post that vouches for the regex.

rubiin avatar Sep 26 '24 13:09 rubiin

Generally speaking is "en-MX" correct here? Wouldn't be "es-MX" be more appropriate, or am I wrong here?

pano9000 avatar Sep 29 '24 20:09 pano9000

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.

anonYmousFPP avatar Oct 01 '24 07:10 anonYmousFPP

Added in Alphabetical order

Screenshot 2024-10-01 125820

and here is the Reference- https://en.wikipedia.org/wiki/Telephone_numbers_in_Mexico

anonYmousFPP avatar Oct 01 '24 07:10 anonYmousFPP