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

Kyrgyzstan phone numbers are missing #1911

Closed
DumDumich opened this issue Jan 24, 2022 · 2 comments
Closed

Kyrgyzstan phone numbers are missing #1911

DumDumich opened this issue Jan 24, 2022 · 2 comments

Comments

@DumDumich
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch validator@13.7.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/validator/lib/isMobilePhone.js b/node_modules/validator/lib/isMobilePhone.js
index a349f06..5e1831b 100644
--- a/node_modules/validator/lib/isMobilePhone.js
+++ b/node_modules/validator/lib/isMobilePhone.js
@@ -111,6 +111,7 @@ var phones = {
   'kk-KZ': /^(\+?7|8)?7\d{9}$/,
   'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
   'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,
+  'ky-KG': /^(\+?996|0)\d{9}$/,
   'lt-LT': /^(\+370|8)\d{8}$/,
   'lv-LV': /^(\+?371)2\d{7}$/,
   'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,

This issue body was partially generated by patch-package.

@WikiRik
Copy link
Member

WikiRik commented Jan 24, 2022

Feel free to make a PR for this, including some tests

@pano9000
Copy link
Contributor

closing this, as this has been added with commit c8c247c / #1924

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants