From 33db085cf69bd9e89239f040469f550c47e12093 Mon Sep 17 00:00:00 2001 From: tolstislon <34726608+tolstislon@users.noreply.github.com> Date: Thu, 23 Jan 2025 16:26:10 +0300 Subject: [PATCH] Updated patterns to libphonenumber v8.13.53 (#133) --- .github/workflows/python-package.yml | 2 +- Pipfile | 2 +- phone_gen/patterns.py | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 44c7682..952f24f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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.52 + python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.53 python -m pip install -e . - name: Flake8 run: | diff --git a/Pipfile b/Pipfile index a778d4a..1206bfd 100644 --- a/Pipfile +++ b/Pipfile @@ -7,7 +7,7 @@ verify_ssl = true black = "==24.10.0" flake8 = "==7.1.1" pep8-naming = "==0.14.1" -phonenumbers = "==8.13.52" +phonenumbers = "==8.13.53" pytest = "==8.3.4" pytest-cov = "==5.0.0" requests = "==2.32.3" diff --git a/phone_gen/patterns.py b/phone_gen/patterns.py index 3c5ed2f..833d7a8 100644 --- a/phone_gen/patterns.py +++ b/phone_gen/patterns.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- """ -Auto-generated file 2024-12-13 09:26:52 UTC (v3) -Resource: https://github.com/google/libphonenumber v8.13.52 +Auto-generated file 2025-01-23 13:19:39 UTC (v3) +Resource: https://github.com/google/libphonenumber v8.13.53 """ PATTERNS = { - "info": "libphonenumber v8.13.52", + "info": "libphonenumber v8.13.53", "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}"}, @@ -283,7 +283,7 @@ "EH": { "code": "212", "pattern": "528[89]\\d{5}", - "mobile": "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}", + "mobile": "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}", }, "ER": { "code": "291", @@ -574,7 +574,7 @@ "LV": { "code": "371", "pattern": "6\\d{7}", - "mobile": "23(?:23[0-57-9]|33[0238])\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[024-9]|3[0-24-9]))\\d{4}", + "mobile": "2333[0-8]\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[02-9]|3[0-24-9]))\\d{4}", }, "LY": { "code": "218", @@ -584,7 +584,7 @@ "MA": { "code": "212", "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-4]|5[01]|8[0-3]))\\d{6}", + "mobile": "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}", }, "MC": { "code": "377", @@ -615,7 +615,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|6[01]|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-478]\\d|6[01])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}", }, "ML": { "code": "223", @@ -656,7 +656,7 @@ }, "MU": { "code": "230", - "pattern": "(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-8]|71)|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}", + "pattern": "(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-8]|71|90)|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}", "mobile": "5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-4]|3[013]))\\d{5}", }, "MV": { @@ -779,7 +779,7 @@ "PW": { "code": "680", "pattern": "(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}", - "mobile": "(?:(?:46|83)[0-5]|6[2-4689]0)\\d{4}|(?:45|77|88)\\d{5}", + "mobile": "(?:(?:46|83)[0-5]|(?:6[2-4689]|78)0)\\d{4}|(?:45|77|88)\\d{5}", }, "PY": { "code": "595", @@ -856,7 +856,7 @@ "SO": { "code": "252", "pattern": "(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}", - "mobile": "(?:(?:15|(?:3[59]|4[89]|6\\d|7[79]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}", + "mobile": "(?:(?:15|(?:3[59]|4[89]|6\\d|7[679]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}", }, "SR": { "code": "597",