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

Added isMobile de-AT #1038

Closed
wants to merge 2 commits into from
Closed

Conversation

gibbets
Copy link

@gibbets gibbets commented May 31, 2019

Added local de-AT for isMobile

@ezkemboi
Copy link
Member

ezkemboi commented Jun 2, 2019

@gibbets thanks for raising this PR. I will take a look at this PR and leave my review.

Copy link
Member

@profnandaa profnandaa left a 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",
Copy link
Member

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.

@profnandaa profnandaa added the 🧹 needs-update For PRs that need to be updated before landing label Jun 13, 2019
@gibbets
Copy link
Author

gibbets commented Jun 14, 2019

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}$/,
Copy link
Member

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.

Copy link
Member

@profnandaa profnandaa left a 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.

@profnandaa
Copy link
Member

@gibbets -- ping.

ezkemboi added a commit to ezkemboi/validator.js that referenced this pull request Jul 9, 2019
Co-authored-by: Ezrqn Kemboi <ezrqnkemboi@gmail.com>
closes validatorjs#1038 validatorjs#1028
@profnandaa profnandaa closed this in 7125c57 Jul 9, 2019
@gibbets gibbets deleted the isMobiledeAT branch March 4, 2020 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧹 needs-update For PRs that need to be updated before landing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants