-
-
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
Mobile Phone validations - For The First Time Contributors #1761
Comments
Great catch, please do add @mairagee524 and reference your PR to this issue with the correct title such as Thanks and looking forward to your PR. |
It seems that Cuba is not on the list either, could I work on that ? |
Sure, please do.
…On Fri, Oct 8, 2021, 8:14 PM Pablo Salas Gelich ***@***.***> wrote:
It seems that Cuba is not on the list either, could I work on that ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALVWPH756XKT3WGXB4RZAELUF4RHDANCNFSM5FSXM3NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Afghanistan is also missing, working on that... |
Please do add and raise a Pr
…On Sat, Oct 9, 2021, 3:15 PM Neel Deshmukh ***@***.***> wrote:
Afghanistan is also missing, I belive
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALVWPH3HH5S7MKWFE26FRYLUGAW57ANCNFSM5FSXM3NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Yes, I did. Btw, for new contributors, what i did was find list of the country code and their ISO codes, wrote simple program to filter non existing countries and wrote the code. here are the resources : @ezkemboi I'm not adding all the missing country code validations, i would like other people to contribute, but after October if still there are no contributions in this or we have missing validations, I would try to complete the list... |
Sure thing.
…On Sat, Oct 9, 2021, 3:49 PM Neel Deshmukh ***@***.***> wrote:
Please do add and raise a Pr
… <#m_7010722731381047102_>
On Sat, Oct 9, 2021, 3:15 PM Neel Deshmukh *@*.***> wrote: Afghanistan is
also missing, I belive — You are receiving this because you authored the
thread. Reply to this email directly, view it on GitHub <#1761 (comment)
<#1761 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALVWPH3HH5S7MKWFE26FRYLUGAW57ANCNFSM5FSXM3NQ
. Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
.
Yes, I did.
Btw, for new contributors, what i did was find list of the country code
and their ISO codes, wrote simple program to filter non existing countries
and wrote the code.
here are the resources :
https://www.att.com/support_media/images/pdf/Country_Code_List.pdf
https://countrycode.org/
@ezkemboi <https://github.com/ezkemboi> I'm not adding all the missing
codes as, i would like other people to contribute, but after October if
still there are no contributions, I would try to complete the list...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALVWPH46IX2ZGVOLK4A7SZTUGA25RANCNFSM5FSXM3NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I didn't see Botswana on the list. Could I add this validation? |
@mgndolan please add that and raise a PR, I will review that. |
It seems like Madagascar in not on the list. Could I add this validation? |
looks like grenada is also not there in the list, should i add this a validation for this? |
Please do add them.
…On Sun, Oct 10, 2021, 11:20 AM Siddhant Sharma ***@***.***> wrote:
looks like grenada is also not there in the list, should i add this a
validation for this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALVWPH3S2B3UKSG6BKHYNQ3UGFEGFANCNFSM5FSXM3NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
It seems like Bhutan is not on the list, should I add validation for this? @ezkemboi |
Yes @lakshayr003 |
It would we nice if we could write comment country name in front of each country code. |
I was just poking around and noticed that there wasn't an entry for Cameroon. Should I work on this? |
Opened PR #1772. |
Good stuff @beckettnormington. |
@ezkemboi Hi! Just noticed that the contribution I added to validate mobile numbers in Sri Lanka has been replaced by this: However, it does not validate mobile numbers in Sri Lanka correctly (sources: https://en.wikipedia.org/wiki/Telephone_numbers_in_Sri_Lanka). Is there a specific reason for the change? |
Please do make the changes @Madhavi96 . |
Thanks. Let me know if you find anything on the requirement for the change. Until then I'll do the changes and raise a PR. |
@ezkemboi Found the validation for Sri Lanka, under Apologies for the false alarm! |
No worries
…On Mon, Oct 11, 2021, 7:30 PM Ishara Madhavi ***@***.***> wrote:
@ezkemboi <https://github.com/ezkemboi> Found the validation for Sri
Lanka, under 'si-LK': /^(?:0|94|\+94)?(7(0|1|2|5|6|7|8)( |-)?\d)\d{6}$/,
and that is correct
Apologies for the false alarm!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1761 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALVWPH5QRBHWNFGD4W3X6YLUGMGKLANCNFSM5FSXM3NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Hey! I would like to do my first contribution. I saw Malawi is not on the list. Can I work on that? |
@SimranSiddiqui of course, go ahead! Do also check out what was done in the past; #1823 |
|
Hey! I did not find Croatia on the list. Can I add that? I will be making a PR shortly. |
Hi Devs, I couldnt find Puerto Rico in the list. I would like to contribute by creating a PR? Excited to start my first open source contribution if it helps. I found myself to make the changes in readme, isMobilePhone.js, validators.test.js files. Did I missed anything? |
Feel free to contribute to this. No need to ask permission, but do check if there is already an open PR with the locale. Most useful sources are the ITU and libPhoneNumber from Google but additional (local) sources are also welcomed Changes are indeed made in the README, isMobilePhone.js and validators.test.js |
Created #2292 PR for Puerto Rico . Please review. Thanks in Advance |
created #2321 PR for Monaco, Please check and review. Thank you. |
Hello, can I create a PR to update the regular expression for Kyrgyzstan phone numbers? The ones currently in place are not up to date. |
Created #2350 PR for Kyrgyz Republic . Please review. Thanks in Advance! 🖖 |
Added mobile phone code for Canada
Hi, it seems that vatican city is not listed, can I work on that? |
Hey! I would like to do my first contribution. I saw CONGO is not on the list. Can I work on that? |
Shall I add Vatican City validation ? |
There's no way to pin a comment in GitHub, so I'll copy my earlier comment to here;
|
I would like to add a PR to the list of contacts in Ghana |
/assign |
I would like to do my first contribution. I saw Eritrea and Solomon Islands are not in the list. Can I work on that? |
I would like to give this to the people who are new and would like to start contributing to validator.js.
The current version in
isMobilePhone validation
, we have less than 195 phone validations i.eIn the code https://github.com/validatorjs/validator.js/blob/master/src/lib/isMobilePhone.js, the validations exist from line 5 to line 119, which means we have probably 119 - 5 countries phone validations. Where might be other countries? That is up to someone who would like to choose which country does not exist and create a new validation for the same.
When making this change, apart from the file above, also add tests and update the isMobilePhone section in the README.
Also, please check on existing PR's if the country you choose to validate mobile phone numbers does not have an already PR raised.
All Prs are welcomed and we will do a review on the same
The text was updated successfully, but these errors were encountered: