Skip to content

Commit

Permalink
Updated patterns to libphonenumber v8.13.48 (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon authored Oct 24, 2024
1 parent 5ab39bf commit 462629e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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.47
python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.48
python -m pip install -e .
- name: Flake8
run: |
Expand Down
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "==24.8.0"
black = "==24.10.0"
flake8 = "==7.1.1"
pep8-naming = "==0.14.1"
phonenumbers = "==8.13.47"
phonenumbers = "==8.13.48"
pytest = "==8.3.3"
pytest-cov = "==5.0.0"
requests = "==2.32.3"
Expand Down
12 changes: 6 additions & 6 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-05 19:57:02 UTC (v3)
Resource: https://github.com/google/libphonenumber v8.13.47
Auto-generated file 2024-10-24 14:02:53 UTC (v3)
Resource: https://github.com/google/libphonenumber v8.13.48
"""


PATTERNS = {
"info": "libphonenumber v8.13.47",
"info": "libphonenumber v8.13.48",
"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 @@ -242,7 +242,7 @@
"DE": {
"code": "49",
"pattern": "32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",
"mobile": "15310\\d{6}|1(?:6[023]|7[0-57-9])\\d{7,8}|1(?:5[0-25-9]|76)\\d{8}",
"mobile": "16[023]\\d{7,8}|1(?:5310|7[0-57-9]\\d)\\d{6}|1(?:5[0-25-9]|76)\\d{8}",
},
"DJ": {"code": "253", "pattern": "2(?:1[2-5]|7[45])\\d{5}", "mobile": "77\\d{6}"},
"DK": {
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]|62))|9[0-8]\\d\\d)\\d{4}",
"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}",
},
"SH": {"code": "290", "pattern": "2(?:[0-57-9]\\d|6[4-9])\\d\\d", "mobile": "[56]\\d{4}"},
"SI": {
Expand Down Expand Up @@ -945,7 +945,7 @@
"UG": {
"code": "256",
"pattern": "20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|3[1-4]|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}",
"mobile": "72[48]0\\d{5}|7(?:[015-8]\\d|2[067]|36|4[0-5]|9[89])\\d{6}",
"mobile": "72[48]0\\d{5}|7(?:[015-8]\\d|2[067]|36|4[0-6]|9[89])\\d{6}",
},
"US": {
"code": "1",
Expand Down

0 comments on commit 462629e

Please sign in to comment.