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 support for Armenia phone #1216

Closed
wants to merge 1 commit into from

Conversation

dani2819
Copy link
Contributor

@dani2819 dani2819 commented Dec 16, 2019

Resolves: #1215
Resolves the above-mentioned issue but with a different kind of regex (not the one stated in the issue). That regex was very general. To know more about the format of Armenia phone, view this link.

The format is +374 or 0 followed by 10 plus 6 more digits OR +374 followed by any digit starts with 2 - 9 plus 7 more digits. It can start with +374 or 0. Hence, the regex is /^(\+?374|0)(10\d{6}$|[2-9]\d{7}$)/

@dani2819 dani2819 closed this Dec 16, 2019
@dani2819 dani2819 deleted the armenia-phone branch December 16, 2019 11:29
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.

am-AM Armenia phone support
1 participant