-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Georgian phone number validation bug #1950
Comments
Would |
Now I trying to figure out is it correct regexp. According to Wikipedia, phone numbers can begin not only with 5 or 79. It is curious to know why these particular digist are highlighted in the regular expression, excluding other options |
closed as merged |
Hello. |
The |
In case you want to validate Georgian number, you can use this regex: |
Describe the bug
Currently Georgian phone regexp looks like this:
'ka-GE': /^(+?995)?(5|79)\d{7}$/,
Examples
But in this time phone started with +995 5... validator is missing one digit:
https://en.wikipedia.org/wiki/Telephone_numbers_in_Georgia_(country)
thus,
+995 500 000 000 is a real phone number that is not valid from the point of view of the regular expression
while in this time
+995 500 000 00 isn't a real numer, but valid here
At the same time, numbers starting with +995 79.. currently validates correctly
Additional context
Validator.js version: latest
Node.js version: doesn't matter
OS platform: [windows, linux, macOS, etc]: doesn't matter
The text was updated successfully, but these errors were encountered: