Skip to content

Commit

Permalink
Updated patterns to libphonenumber v8.13.49 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon authored Nov 4, 2024
1 parent 462629e commit 4d2d091
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 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.48
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.49
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 = "==24.10.0"
flake8 = "==7.1.1"
pep8-naming = "==0.14.1"
phonenumbers = "==8.13.48"
phonenumbers = "==8.13.49"
pytest = "==8.3.3"
pytest-cov = "==5.0.0"
requests = "==2.32.3"
Expand Down
26 changes: 13 additions & 13 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 2024-10-24 14:02:53 UTC (v3)
Resource: https://github.com/google/libphonenumber v8.13.48
Auto-generated file 2024-11-04 15:38:07 UTC (v3)
Resource: https://github.com/google/libphonenumber v8.13.49
"""


PATTERNS = {
"info": "libphonenumber v8.13.48",
"info": "libphonenumber v8.13.49",
"data": {
"AC": {"code": "247", "pattern": "6[2-467]\\d{3}", "mobile": "4\\d{4}"},
"AD": {"code": "376", "pattern": "[78]\\d{5}", "mobile": "690\\d{6}|[356]\\d{5}"},
Expand Down Expand Up @@ -205,7 +205,7 @@
},
"CO": {
"code": "57",
"pattern": "601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|60(?:[124-7][2-9]|8[1-9])\\d{6}",
"pattern": "601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|(?:46|60(?:[124-7][2-9]|8[1-9]))\\d{6}",
"mobile": "333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",
},
"CR": {
Expand Down Expand Up @@ -273,7 +273,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(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[0-79]\\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(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[0-79]\\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 Down Expand Up @@ -608,7 +608,7 @@
},
"MG": {
"code": "261",
"pattern": "2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[245])\\d{5}",
"pattern": "2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])\\d{5}",
"mobile": "3[2-47-9]\\d{7}",
},
"MH": {"code": "692", "pattern": "(?:247|528|625)\\d{4}", "mobile": "(?:(?:23|54)5|329|45[35-8])\\d{4}"},
Expand Down Expand Up @@ -644,8 +644,8 @@
},
"MQ": {
"code": "596",
"pattern": "596(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])\\d{4}",
"mobile": "69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}",
"pattern": "(?:596(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}",
"mobile": "69[67]\\d{6}",
},
"MR": {"code": "222", "pattern": "(?:25[08]|35\\d|45[1-7])\\d{5}", "mobile": "[2-4][0-46-9]\\d{6}"},
"MS": {"code": "1", "pattern": "6644(?:1[0-3]|91)\\d{4}", "mobile": "664(?:3(?:49|9[1-6])|49[2-6])\\d{4}"},
Expand All @@ -661,7 +661,7 @@
},
"MV": {
"code": "960",
"pattern": "(?:3(?:0[0-3]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}",
"pattern": "(?:3(?:0[0-4]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}",
"mobile": "(?:46[46]|[79]\\d\\d)\\d{4}",
},
"MW": {
Expand Down Expand Up @@ -766,8 +766,8 @@
},
"PM": {
"code": "508",
"pattern": "(?:4[1-35-7]|5[01])\\d{4}",
"mobile": "(?:4[02-4]|5[056]|708[45][0-5])\\d{4}",
"pattern": "(?:4[1-35-9]|5[0-47-9]|80[6-9]\\d\\d)\\d{4}",
"mobile": "(?:4[02-489]|5[02-9]|708[45][0-5])\\d{4}",
},
"PR": {"code": "1", "pattern": "(?:787|939)[2-9]\\d{6}", "mobile": "(?:787|939)[2-9]\\d{6}"},
"PS": {"code": "970", "pattern": "(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}", "mobile": "5[69]\\d{7}"},
Expand Down Expand Up @@ -832,7 +832,7 @@
"SG": {
"code": "65",
"pattern": "662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",
"mobile": "(?:8(?:0(?:[1-8]\\d|9[0-689])|[1-8]\\d\\d|9(?:[0-4]\\d|5[0-3]|6[0-2]))|9[0-8]\\d\\d)\\d{4}",
"mobile": "8(?:09[0-689]|96[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-5])|9[0-8]\\d)\\d{5}",
},
"SH": {"code": "290", "pattern": "2(?:[0-57-9]\\d|6[4-9])\\d\\d", "mobile": "[56]\\d{4}"},
"SI": {
Expand Down Expand Up @@ -901,7 +901,7 @@
"TJ": {
"code": "992",
"pattern": "(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}",
"mobile": "(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[017]|2[02]|[34]0|5[05]|7[01578]|8[078])\\d{7}",
"mobile": "(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0178]|2[02]|[34]0|5[05]|7[01578]|8[078])\\d{7}",
},
"TK": {"code": "690", "pattern": "(?:2[2-4]|[34]\\d)\\d{2,5}", "mobile": "7[2-4]\\d{2,5}"},
"TL": {"code": "670", "pattern": "(?:2[1-5]|3[1-9]|4[1-4])\\d{5}", "mobile": "7[2-8]\\d{6}"},
Expand Down

0 comments on commit 4d2d091

Please sign in to comment.