-
-
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
Added isMobile de-AT #1038
Added isMobile de-AT #1038
Conversation
@gibbets thanks for raising this PR. I will take a look at this PR and leave my review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! See my comments above and also update the README.
@@ -38,9 +38,9 @@ | |||
}, | |||
"devDependencies": { | |||
"@babel/cli": "^7.0.0", | |||
"@babel/core": "^7.0.0", | |||
"@babel/core": "^7.4.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can leave out these changes since they are not related to the PR.
Hi, I commited the changes. |
@@ -17,6 +17,7 @@ const phones = { | |||
'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, | |||
'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/, | |||
'de-DE': /^(\+49)?0?1(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/, | |||
'de-AT': /^(\+43)?0?6\d{9}$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am leaving some comment here based on my research.
I come across these statements
Austrian mobile (Handy) telephone numbers begin with 0650 or higher up to 0699
(eg 0664 plus the rest of the number). Numbers beginning with 0900 are exorbitantly charged and best avoided.
Some large organizations have ‘050’ numbers, which do not need an area code
(a local call from a landline, but more expensive from a mobile phone).
Link
Again, I come to across below
Austria’s country phone code is 43.
There are no standard lengths for either area codes or subscribers’ numbers in Austria,
so some subscribers’ numbers are as short as three digits!
For example, area phone codes can be anywhere from three digits (such as Linz’s 070)
to five digits (such as Kitzbuehel’s 05356);
the telephone numbers range from four to seven digits.
Link for above
I don't know if the statements above are valid. If valid, then it means regex will need some updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating! 🎉 Just address the 2 pending comments from past review and I should land this.
@gibbets -- ping. |
Co-authored-by: Ezrqn Kemboi <[email protected]> closes validatorjs#1038 validatorjs#1028
Added local de-AT for isMobile