Skip to content

Commit

Permalink
Updated patterns to libphonenumber v8.13.14 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon authored Jun 14, 2023
1 parent 55f9814 commit cd2052f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.13
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.14
python -m pip install -e .
- name: Flake8
run: |
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ verify_ssl = true
black = "==23.3.0"
flake8 = "==6.0.0"
pep8-naming = "==0.13.3"
phonenumbers = "==8.13.13"
phonenumbers = "==8.13.14"
pytest = "==7.3.1"
pytest-cov = "==4.0.0"
requests = "==2.31.0"
Expand Down
20 changes: 10 additions & 10 deletions phone_gen/patterns.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
"""
Auto-generated file 2023-06-03 11:49:59 UTC
Resource: https://github.com/google/libphonenumber v8.13.13
Auto-generated file 2023-06-14 08:01:41 UTC
Resource: https://github.com/google/libphonenumber v8.13.14
"""


PATTERNS = {
"info": "libphonenumber v8.13.13",
"info": "libphonenumber v8.13.14",
"data": {
"AC": {
"code": "247",
Expand Down Expand Up @@ -321,7 +321,7 @@
"EE": {
"code": "372",
"pattern": "(((3[23589])|(4[3-8])|(6[\\d])|(7[1-9])|(88)[\\d]{5}))",
"mobile": "(((5[\\d]{5})|(8(1(0(000)|([3-9][\\d][\\d]))|((1(0[236])|(1[\\d]))|((2[0-59])|([3-79][\\d])[\\d])[\\d]))|(2(0(000)|((19)|([2-7][\\d])[\\d]))|((([124-6][\\d])|(3[5-9])[\\d])|(7([3679][\\d])|(8[13-9]))|(8([2-6][\\d])|(7[01]))[\\d]))|([349][\\d]{4}))[\\d][\\d])|(5(([02][\\d])|(5[0-478])[\\d])|(1([0-8][\\d])|(95))|(6(4[0-4])|(5[1-589]))[\\d]{3}))",
"mobile": "(((5[\\d]{5})|(8(1(0(000)|([3-9][\\d][\\d]))|((1(0[236])|(1[\\d]))|((2[0-59])|([3-79][\\d])[\\d])[\\d]))|(2(0(000)|((19)|([2-7][\\d])[\\d]))|((([124-6][\\d])|(3[5-9])[\\d])|(7([0-3679][\\d])|(8[13-9]))|(8([2-6][\\d])|(7[01]))[\\d]))|([349][\\d]{4}))[\\d][\\d])|(5(([02][\\d])|(5[0-478])[\\d])|(1([0-8][\\d])|(95))|(6(4[0-4])|(5[1-589]))[\\d]{3}))",
},
"EG": {
"code": "20",
Expand All @@ -346,7 +346,7 @@
"ET": {
"code": "251",
"pattern": "((11667[01][\\d]{3})|((11(1(1[124])|(2[2-7])|(3[1-5])|(5[5-8])|(8[6-8]))|(2(13)|(3[6-8])|(5[89])|(7[05-9])|(8[2-6]))|(3(2[01])|(3[0-289])|(4[1289])|(7[1-4])|(87))|(4(1[69])|(3[2-49])|(4[0-3])|(6[5-8]))|(5(1[578])|(44)|(5[0-4]))|(6(1[578])|(2[69])|(39)|(4[5-7])|(5[0-5])|(6[0-59])|(8[015-8])))|(2(2(11[1-9])|(22[0-7])|(33[\\d])|(44[1467])|(66[1-68]))|(5(11[124-6])|(33[2-8])|(44[1467])|(55[14])|(66[1-3679])|(77[124-79])|(880)))|(3(3(11[0-46-8])|((22)|(55)[0-6])|(33[0134689])|(44[04])|(66[01467]))|(4(44[0-8])|(55[0-69])|(66[0-3])|(77[1-5])))|(4(6(119)|(22[0-24-7])|(33[1-5])|(44[13-69])|(55[14-689])|(660)|(88[1-4]))|(7((11)|(22)[1-9])|(33[13-7])|(44[13-6])|(55[1-689])))|(5(7(227)|(55[05])|((66)|(77)[14-8]))|(8(11[149])|(22[013-79])|(33[0-68])|(44[013-8])|(550)|(66[1-5])|(77[\\d])))[\\d]{4}))",
"mobile": "((7001[\\d]{5})|((7(0[1-9])|(1[0-8])|(22)|(77)|(86)|(99))|(9[\\d][\\d])[\\d]{6}))",
"mobile": "((700[1-9][\\d]{5})|((7(0[1-9])|(1[0-8])|(22)|(77)|(86)|(99))|(9[\\d][\\d])[\\d]{6}))",
},
"FI": {
"code": "358",
Expand Down Expand Up @@ -527,7 +527,7 @@
"IR": {
"code": "98",
"pattern": "(((1[137])|(2[13-68])|(3[1458])|(4[145])|(5[1468])|(6[16])|(7[1467])|(8[13467])([03-57][\\d]{7})|([16][\\d]{3}([\\d]{4})?)|([289][\\d]{3}([\\d]([\\d]{3})?)?))|(94(000[09])|(2(121)|([2689]0[\\d]))|(30[0-2][\\d])|(4(111)|(40[\\d]))[\\d]{4}))",
"mobile": "((9((0([0-35][\\d])|(4[4-6]))|(([13][\\d])|(2[0-3])[\\d])[\\d])|(9([0-46][\\d][\\d])|(5[15]0)|(8(1[\\d])|(88))|(9(0[0-3])|([19][\\d])|(21)|(77)|(8[7-9])))[\\d]{5}))",
"mobile": "((9((0([0-35][\\d])|(4[4-6]))|(([13][\\d])|(2[0-3])[\\d])[\\d])|(9([0-46][\\d][\\d])|(5[15]0)|(8([12][\\d])|(88))|(9(0[0-3])|([19][\\d])|(21)|(69)|(77)|(8[7-9])))[\\d]{5}))",
},
"IS": {
"code": "354",
Expand Down Expand Up @@ -712,13 +712,13 @@
},
"MM": {
"code": "95",
"pattern": "(((1((2[\\d])|(3[56])|([89][0-6])[\\d])|(4(2[29])|(39)|(62)|(7[0-2])|(83))|(6))|(2(2(00)|(8[34]))|(4(0[\\d])|([26]2)|(39)|(7[0-2])|(83))|(51[\\d][\\d]))|(4(2(2[\\d][\\d])|(48[013]))|(3(20[\\d])|(4(70)|(83))|(56))|(420[\\d])|(5470))|(6(0([23])|(88[\\d]))|((124)|([56]2[\\d])[\\d])|(2472)|(3(20[\\d])|(470))|(4(2[04][\\d])|(472))|(7((3[\\d])|(8[01459])[\\d])|(4(39)|([67]0))))[\\d]{4})|(5(2(2[\\d]{5:6})|(47[02][\\d]{4}))|((3472)|(4(2(1)|(86))|(470))|(522[\\d])|(6(20[\\d])|(483))|(7(20[\\d])|(48[01]))|(8(20[\\d])|(47[02]))|(9(20[\\d])|(470))[\\d]{4}))|(7((0470)|(4(25[\\d])|(470))|(5(202)|(470)|(96[\\d]))[\\d]{4})|(1(20[\\d]{4:5})|(4(70)|(83)[\\d]{4})))|(8(1(2[\\d]{5:6})|(4(10)|(7[01][\\d])[\\d]{3}))|(2(2[\\d]{5:6})|((320)|(490[\\d])[\\d]{3}))|((3(2[\\d][\\d])|(470))|(4[24-7])|(5((2[\\d])|(51)[\\d])|(4([1-35-9][\\d])|(4[0-57-9])))|(6[23])[\\d]{4}))|((1[2-6][\\d])|(4(2[24-8])|(3[2-7])|([46][2-6])|(5[3-5]))|(5([27][2-8])|(3[2-68])|(4[24-8])|(5[23])|(6[2-4])|(8[24-7])|(9[2-7]))|(6([19]20)|(42[03-6])|((52)|(7[45])[\\d]))|(7([04][24-8])|([15][2-7])|(22)|(3[2-4]))|(8(1[2-689])|(2[2-8])|([35]2[\\d]))[\\d]{4})|(25[\\d]{5:6})|((2[2-9])|(6(1[2356])|([24][2-6])|(3[24-6])|(5[2-4])|(6[2-8])|(7[235-7])|(8[245])|(9[24]))|(8(3[24])|(5[245]))[\\d]{4}))",
"pattern": "(((1((2[\\d])|(3[56])|([89][0-6])[\\d])|(4(2[29])|(62)|(7[0-2])|(83))|(6))|(2(2(00)|(8[34]))|(4(0[\\d])|([26]2)|(7[0-2])|(83))|(51[\\d][\\d]))|(4(2(2[\\d][\\d])|(48[013]))|(3(20[\\d])|(4(70)|(83))|(56))|(420[\\d])|(5470))|(6(0([23])|(88[\\d]))|((124)|([56]2[\\d])[\\d])|(2472)|(3(20[\\d])|(470))|(4(2[04][\\d])|(472))|(7((3[\\d])|(8[01459])[\\d])|(4[67]0)))[\\d]{4})|(5(2(2[\\d]{5:6})|(47[02][\\d]{4}))|((3472)|(4(2(1)|(86))|(470))|(522[\\d])|(6(20[\\d])|(483))|(7(20[\\d])|(48[01]))|(8(20[\\d])|(47[02]))|(9(20[\\d])|(470))[\\d]{4}))|(7((0470)|(4(25[\\d])|(470))|(5(202)|(470)|(96[\\d]))[\\d]{4})|(1(20[\\d]{4:5})|(4(70)|(83)[\\d]{4})))|(8(1(2[\\d]{5:6})|(4(10)|(7[01][\\d])[\\d]{3}))|(2(2[\\d]{5:6})|((320)|(490[\\d])[\\d]{3}))|((3(2[\\d][\\d])|(470))|(4[24-7])|(5((2[\\d])|(51)[\\d])|(4([1-35-9][\\d])|(4[0-57-9])))|(6[23])[\\d]{4}))|((1[2-6][\\d])|(4(2[24-8])|(3[2-7])|([46][2-6])|(5[3-5]))|(5([27][2-8])|(3[2-68])|(4[24-8])|(5[23])|(6[2-4])|(8[24-7])|(9[2-7]))|(6([19]20)|(42[03-6])|((52)|(7[45])[\\d]))|(7([04][24-8])|([15][2-7])|(22)|(3[2-4]))|(8(1[2-689])|(2[2-8])|([35]2[\\d]))[\\d]{4})|(25[\\d]{5:6})|((2[2-9])|(6(1[2356])|([24][2-6])|(3[24-6])|(5[2-4])|(6[2-8])|(7[235-7])|(8[245])|(9[24]))|(8(3[24])|(5[245]))[\\d]{4}))",
"mobile": "(((17[01])|(9(2([0-4])|([56][\\d][\\d]))|((3([0-36])|(4[\\d]))|((6[\\d])|(8[89])|(9[4-8])[\\d])|(7(3)|(40)|([5-9][\\d]))[\\d])|(4(([0245][\\d])|([1379])[\\d])|(88))|(5[0-6])[\\d])[\\d]{4})|(9[69]1[\\d]{6})|(9([68][\\d])|(9[089])[\\d]{5}))",
},
"MN": {
"code": "976",
"pattern": "(([12]2[1-3][\\d]{5:6})|(7(0[0-5][\\d])|(128)[\\d]{4})|(([12](1)|(27))|(5[368])[\\d]{6})|([12](3[2-8])|(4[2-68])|(5[1-4689])[\\d]{6:7}))",
"mobile": "(((83[01])|(920)[\\d]{5})|((5[05])|(6[069])|(8[015689])|(9[013-9])[\\d]{6}))",
"mobile": "(((83[01])|(92[039])[\\d]{5})|((5[05])|(6[069])|(8[015689])|(9[013-9])[\\d]{6}))",
},
"MO": {
"code": "853",
Expand Down Expand Up @@ -838,11 +838,11 @@
"NZ": {
"code": "64",
"pattern": "((24099[\\d]{3})|((3[2-79])|([49][2-9])|(6[235-9])|(7[2-57-9])[\\d]{6}))",
"mobile": "((2[0-27-9][\\d]{7:8})|(21[\\d]{6}))",
"mobile": "((2[0-27-9][\\d]{7:8})|(2(1[\\d])|(75)[\\d]{5}))",
},
"OM": {
"code": "968",
"pattern": "((2[2-6][\\d]{6}))",
"pattern": "((2[1-6][\\d]{6}))",
"mobile": "((1505[\\d]{4})|((7([1289][\\d])|(7[0-5]))|(9(0[1-9])|([1-9][\\d]))[\\d]{5}))",
},
"PA": {
Expand Down

0 comments on commit cd2052f

Please sign in to comment.