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

Valid phone number from Uzbekistan #1417

Closed
icyice0217 opened this issue Aug 19, 2020 · 5 comments
Closed

Valid phone number from Uzbekistan #1417

icyice0217 opened this issue Aug 19, 2020 · 5 comments

Comments

@icyice0217
Copy link
Contributor

icyice0217 commented Aug 19, 2020

Hello everyone, we need add 'uz-UZ' locale in isMobilePhone.js lib to do validation for Uzbekistan mobile phones.
Country code: +998
format mobile phones: ( [+998] )? ( ( [6] ( [1] | [2] | [5] | [6] | [7] | [9] ) ) | ( [7] ( [1] | [2] | [3] | [4] | [5] | [6] | [9] ) ) | [88] | [9X] ) [XXX XXXX]
[X] phone number: 7 or 8 digits
I've made an initial expression as:
/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/
Please improve the expression and add it into lib
for more info about Uzbekistan phone codes see : areaphonecodes
Best Regards

@icyice0217
Copy link
Contributor Author

@profnandaa can i take this one?

@profnandaa
Copy link
Member

@icyice0217 -- sure, please go for it!

@icyice0217
Copy link
Contributor Author

PR has been created on #1420

@icyice0217
Copy link
Contributor Author

PR #1420 was merged, thanks guys for all the hard work.

@profnandaa
Copy link
Member

Thank you too, and welcome to the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants