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

fix(isMobilePhone): update phone regex for Ukraine uk-UA #2359

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

arttiger
Copy link
Contributor

@arttiger arttiger commented Jan 13, 2024

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

See more: International Telecommunication Union (ITU)

Copy link

codecov bot commented Jan 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.95%. Comparing base (b958bd7) to head (4378c01).
Report is 22 commits behind head on master.

❗ Current head 4378c01 differs from pull request most recent head 521e7c3. Consider uploading reports for the commit 521e7c3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2359      +/-   ##
==========================================
- Coverage   99.95%   99.95%   -0.01%     
==========================================
  Files         107      107              
  Lines        2454     2449       -5     
  Branches      619      619              
==========================================
- Hits         2453     2448       -5     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -150,7 +150,7 @@ const phones = {
'th-TH': /^(\+66|66|0)\d{9}$/,
'tr-TR': /^(\+?90|0)?5\d{9}$/,
'tk-TM': /^(\+993|993|8)\d{8}$/,
'uk-UA': /^(\+?38|8)?0\d{9}$/,
'uk-UA': /^(\+?38)?0(50|63|66|67|68|73|91|92|93|94|95|96|97|98|99)\d{7}$/,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'uk-UA': /^(\+?38)?0(50|63|66|67|68|73|91|92|93|94|95|96|97|98|99)\d{7}$/,
'uk-UA': /^(\+?38)?0(50|6[36-8]|73|9[1-9])\d{7}$/,

Minor suggestion to reduce the length of the expression

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed and added two new mobile carrier codes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

National commission for state regulation in the spheres of electronic communications, radio frequency spectrum and the provision of postal communication services
Results of NKEK meetings from March 6, 2024 code 75
Results of the NKEK meeting of February 28, 2024 code 77

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not able to reach https://nkrzi.gov.ua/index.php?r=site/index&pg=99&id=2953&language=uk nor https://nkrzi.gov.ua/
Do you have a different website?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://nkrzi.gov.ua/ is an official site, it may not be accessible from other parts of Ukraine. If necessary, I can attach an image of these solutions from the official website.

Information about this is also available on the official website and on the official data page of mobile operators.
code 75
code 77

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for linking to the mobile operators. I'll try using a VPN later for the government website and approve afterwards

Minor suggestion to reduce the length of the expression аnd add two new mobile operators
@arttiger arttiger requested a review from WikiRik May 8, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants