Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(isMobilePhone): add es-AR locale (Argentina) #1442

Closed
wants to merge 1 commit into from
Closed

feat(isMobilePhone): add es-AR locale (Argentina) #1442

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 19, 2020

Argentine phone numbers can be quite varied I found, thankfully mobile phone numbers are more straightforward, I also consulted with some argentinian friends to make sure my regex was working as intended! 😄

@ghost ghost closed this Sep 19, 2020
@ghost ghost reopened this Sep 19, 2020
Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contrib, please fix this and we should be good to go.

@@ -67,6 +67,7 @@ var phones = {
'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/,
'es-PA': /^(\+?507)\d{7,8}$/,
'es-PY': /^(\+?595|0)9[9876]\d{7}$/,
'es-AR': /^\+?549(11|[2368]\d)\d{8}$/,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are failing coz you made your changes in a wrong file, you should make this in src/lib/isMobilePhone.js; and then this will be auto-generated when you run npm test. Please do that, run npm-test then commit and push.

@profnandaa
Copy link
Member

closing coz of #1444

@profnandaa profnandaa closed this Sep 19, 2020
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