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

Adding es-CO locale for mobile phones #1198

Merged
merged 5 commits into from
Jun 8, 2020

Conversation

zorrodg
Copy link
Contributor

@zorrodg zorrodg commented Nov 11, 2019

As titled. Please let me know if I need to add anything else. Thanks!

index.js Outdated
@@ -1,5 +1,7 @@
"use strict";

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
Copy link
Member

Choose a reason for hiding this comment

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

unstage the changes here, I know they were generated by your build system but remove them from your commit.

lib/isIP.js Outdated
@@ -9,6 +9,35 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
Copy link
Member

Choose a reason for hiding this comment

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

Also remove this file since it's unrelated.

'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/,
'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
Copy link
Member

Choose a reason for hiding this comment

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

Did you add both es-CO and es-EC?

Copy link
Member

Choose a reason for hiding this comment

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

If so, add tests for both.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't check 'es-EC'. Seems like a spacing change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, the es-EC was already introduced in src/lib/isMobilePhone.js. Perhaps checking with @mrcrow85?

@profnandaa
Copy link
Member

And thanks for your contrib BTW 👍

@zorrodg zorrodg force-pushed the feature/locale-es-co branch 2 times, most recently from 54e15e5 to daccca2 Compare November 15, 2019 13:41
@zorrodg zorrodg requested a review from profnandaa November 15, 2019 13:42
@profnandaa
Copy link
Member

@zorrodg -- could you fix the m/c and we should be good to go? Sorry for my delay to re-check this.

@profnandaa profnandaa added mc-to-land Just merge-conflict standing between the PR and landing. 🧹 needs-update For PRs that need to be updated before landing labels Mar 22, 2020
@rubiin
Copy link
Member

rubiin commented Jun 3, 2020

@zorrodg i think you should fix the merge conflicts. Rest looks good

@zorrodg zorrodg force-pushed the feature/locale-es-co branch from daccca2 to eb59416 Compare June 6, 2020 11:55
@zorrodg
Copy link
Contributor Author

zorrodg commented Jun 6, 2020

Sorry it took so long. I stopped working on the project I needed this for, and quite recently picked it back up. Please let me know if anything else is needed.

@profnandaa
Copy link
Member

No worries, glad to see you back :)

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.

This LGTM, thanks for your contrib! 🎉 Just add the locale on the README listing and we should be good to go.

@profnandaa profnandaa removed the mc-to-land Just merge-conflict standing between the PR and landing. label Jun 6, 2020
@profnandaa profnandaa merged commit 5322e6a into validatorjs:master Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧹 needs-update For PRs that need to be updated before landing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants