Skip to content

Commit

Permalink
Updated patterns to libphonenumber v8.13.26 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon committed Nov 30, 2023
1 parent 7771f0b commit 24a75a4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .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.24
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.26
python -m pip install -e .
- name: Flake8
run: |
Expand All @@ -35,4 +35,4 @@ jobs:
black --check phone_gen
- name: Test with pytest
run: |
pytest -m "not phonenumbers" tests
pytest tests
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.11.0"
flake8 = "==6.1.0"
pep8-naming = "==0.13.3"
phonenumbers = "==8.13.24"
phonenumbers = "==8.13.26"
pytest = "==7.4.3"
pytest-cov = "==4.1.0"
requests = "==2.31.0"
Expand Down
24 changes: 12 additions & 12 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-11-13 11:52:43 UTC
Resource: https://github.com/google/libphonenumber v8.13.25
Auto-generated file 2023-11-27 12:22:33 UTC
Resource: https://github.com/google/libphonenumber v8.13.26
"""


PATTERNS = {
"info": "libphonenumber v8.13.25",
"info": "libphonenumber v8.13.26",
"data": {
"AC": {
"code": "247",
Expand Down Expand Up @@ -470,8 +470,8 @@
},
"HK": {
"code": "852",
"pattern": "(((2([13-9][\\d])|(2[013-9])[\\d])|(3(([1569][0-24-9])|(4[0-246-9])|(7[0-24-69])[\\d])|(8([45][0-8])|(6[01])|(9[\\d])))|(58(0[1-9])|(1[2-9]))[\\d]{4}))",
"mobile": "(((4(44[5-9])|(6(1[0-6])|(4[0-57-9])|(6[0-4])))|(573[0-6])|(6(26[013-8])|(66[0-3]))|(70(7[1-5])|(8[0-4]))|(848[0-25-9])|(9(29[013-9])|(59[0-4])|(899))[\\d]{4})|((4(4[015])|(6[023578]))|(5([1-59][0-46-9])|(6[0-4689])|(7[0-246-9]))|(6(0[1-9])|([13-59][\\d])|([268][0-57-9])|(7[0-79]))|(84[09])|(9(0[1-9])|(1[02-9])|([2358][0-8])|([467][\\d]))[\\d]{5}))",
"pattern": "(((2([13-9][\\d])|(2[013-9])[\\d])|(3(([1569][0-24-9])|(4[0-246-9])|(7[0-24-69])[\\d])|(8(4[0-8])|([59][\\d])|(6[01])))|(58(0[1-9])|(1[2-9]))[\\d]{4}))",
"mobile": "(((4(44[5-9])|(6(1[0-7])|(4[0-57-9])|(6[0-4])))|(5(73[0-6])|(95[0-8]))|(6(26[013-8])|(66[0-3]))|(70(7[1-6])|(8[0-4]))|(848[0-25-9])|(9(29[013-9])|(59[0-4])|(899))[\\d]{4})|((4(4[015])|(6[02357-9]))|(5([1-59][0-46-9])|(6[0-4689])|(7[0-246-9]))|(6(0[1-9])|([13-59][\\d])|([268][0-57-9])|(7[0-79]))|(84[09])|(9(0[1-9])|(1[02-9])|([2358][0-8])|([467][\\d]))[\\d]{5}))",
},
"HN": {
"code": "504",
Expand All @@ -481,7 +481,7 @@
"HR": {
"code": "385",
"pattern": "((1[\\d]{7})|((2[0-3])|(3[1-5])|(4[02-47-9])|(5[1-3])[\\d]{6:7}))",
"mobile": "((9((0[1-9])|([12589][\\d])[\\d][\\d])|(7([0679][\\d][\\d])|(5([01][\\d])|(44)|(77)|(9[67])))[\\d]{4})|(98[\\d]{6}))",
"mobile": "((9((0[1-9])|([12589][\\d])[\\d][\\d])|(7([0679][\\d][\\d])|(5([01][\\d])|(44)|(77)|(9[5-7])))[\\d]{4})|(98[\\d]{6}))",
},
"HT": {
"code": "509",
Expand Down Expand Up @@ -667,7 +667,7 @@
},
"MA": {
"code": "212",
"pattern": "((5293[01][\\d]{4})|(5(2([0-25-7][\\d])|(3[1-578])|(4[02-46-8])|(8[0235-7])|(9[0-289]))|(3([0-47][\\d])|(5[02-9])|(6[02-8])|(8[0189])|(9[3-9]))|((4[067])|(5[03])[\\d])[\\d]{5}))",
"pattern": "((5(2([0-25-79][\\d])|(3[1-578])|(4[02-46-8])|(8[0235-7]))|(3([0-47][\\d])|(5[02-9])|(6[02-8])|(8[014-9])|(9[3-9]))|((4[067])|(5[03])[\\d])[\\d]{5}))",
"mobile": "(((6([0-79][\\d])|(8[0-247-9]))|(7([0167][\\d])|(2[0-2])|(5[01])|(8[0-3]))[\\d]{6}))",
},
"MC": {
Expand Down Expand Up @@ -703,7 +703,7 @@
"MK": {
"code": "389",
"pattern": "((((2(62)|(77)0)|(3444)[\\d])|(4[56]440)[\\d]{3})|((34)|(4[357])700[\\d]{3})|((2([0-3][\\d])|(5[0-578])|(6[01])|(82))|(3(1[3-68])|([23][2-68])|(4[23568]))|(4([23][2-68])|(4[3-68])|(5[2568])|(6[25-8])|(7[24-68])|(8[4-68]))[\\d]{5}))",
"mobile": "((7(3555)|((474)|(9[019]7)7)[\\d]{3})|(7([0-25-8][\\d][\\d])|(3([1-48][\\d])|(60)|(7[01578]))|(4(2[\\d])|(60)|(7[01578]))|(9([2-4][\\d])|(5[01])|(7[015]))[\\d]{4}))",
"mobile": "((7(3555)|((474)|(9[019]7)7)[\\d]{3})|(7([0-25-8][\\d][\\d])|(3([1-48][\\d])|(6[01])|(7[01578]))|(4(2[\\d])|(60)|(7[01578]))|(9([2-4][\\d])|(5[01])|(7[015]))[\\d]{4}))",
},
"ML": {
"code": "223",
Expand Down Expand Up @@ -873,7 +873,7 @@
"PK": {
"code": "92",
"pattern": "((((21)|(42)[2-9])|(58[126])[\\d]{7})|((2[25])|(4[0146-9])|(5[1-35-7])|(6[1-8])|(7[14])|(8[16])|(91)[2-9][\\d]{6:7})|((2(3[2358])|(4[2-4])|(9[2-8]))|(45[3479])|(54[2-467])|(60[468])|(72[236])|(8(2[2-689])|(3[23578])|(4[3478])|(5[2356]))|(9(2[2-8])|(3[27-9])|(4[2-6])|(6[3569])|(9[25-8]))[2-9][\\d]{5:6}))",
"mobile": "((3([0-24][\\d])|(3[0-79])|(55)|(64)[\\d]{7}))",
"mobile": "((3([0-247][\\d])|(3[0-79])|(55)|(64)[\\d]{7}))",
},
"PL": {
"code": "48",
Expand Down Expand Up @@ -923,7 +923,7 @@
"RO": {
"code": "40",
"pattern": "(([23][13-6][\\d]{7})|((2(19[\\d])|([3-6][\\d]9))|(31[\\d][\\d])[\\d][\\d]))",
"mobile": "((7020[\\d]{5})|(7(0[013-9])|(1[0-3])|([2-7][\\d])|(8[03-8])|(9[0-29])[\\d]{6}))",
"mobile": "((7020[\\d]{5})|((62[\\d])|(7(0[013-9])|(1[0-3])|([2-7][\\d])|(8[03-8])|(9[0-39]))[\\d]{6}))",
},
"RS": {
"code": "381",
Expand Down Expand Up @@ -1068,8 +1068,8 @@
},
"TJ": {
"code": "992",
"pattern": "(((3(1[3-5])|(2[245])|(3[12])|(4[24-7])|(5[25])|(72))|(4(4[046])|(74)|(87))[\\d]{6}))",
"mobile": "(((41[18])|(81[1-9])[\\d]{6})|((0[0-57-9])|(1[017])|(2[02])|([34]0)|(5[05])|(7[0178])|(8[078])|(9[\\d])[\\d]{7}))",
"pattern": "(((3(1[3-5])|(2[245])|(3[12])|(4[24-7])|(5[25])|(72))|(4(46)|(74)|(87))[\\d]{6}))",
"mobile": "(((4(1[18])|(4[02-479]))|(81[1-9])[\\d]{6})|((0[0-57-9])|(1[017])|(2[02])|([34]0)|(5[05])|(7[0178])|(8[078])|(9[\\d])[\\d]{7}))",
},
"TK": {
"code": "690",
Expand Down

0 comments on commit 24a75a4

Please sign in to comment.