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

add regex for en-MO (Macau phone numbers - +853-6123-4567) #1099

Closed
wants to merge 2 commits into from
Closed

add regex for en-MO (Macau phone numbers - +853-6123-4567) #1099

wants to merge 2 commits into from

Conversation

anton-bot
Copy link
Contributor

No description provided.

Copy link
Member

@ezkemboi ezkemboi left a comment

Choose a reason for hiding this comment

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

I have left some comments for this PR.

@@ -28,6 +28,7 @@ const phones = {
'en-IE': /^(\+?353|0)8[356789]\d{7}$/,
'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
'en-KE': /^(\+?254|0)(7|1)\d{8}$/,
'en-MO': /^(\+?853\-?)?6\d{3}\-?\d{4}$/,
Copy link
Member

@ezkemboi ezkemboi Sep 5, 2019

Choose a reason for hiding this comment

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

Good work adding this new feature.
I just wanted to leave some comments,

  1. Add tests for the same (Valid and invalid cases).
  2. Update the README file to help people that the new mobile validation is available.
  3. Run your tests.

In case of any clarification, feel free to ask/check readme.md file for more clarification.

Copy link
Member

@ezkemboi ezkemboi left a comment

Choose a reason for hiding this comment

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

@anton-bot Check my requests in the comment above and I think the PR will be ready to land unless @profnandaa have some comments or requests.

@anton-bot
Copy link
Contributor Author

@ezkemboi thanks for your advice, added tests and updated readme now.

@anton-bot
Copy link
Contributor Author

superceded by #1200

@anton-bot anton-bot closed this Dec 9, 2019
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.

2 participants