From 8c19ab19ead83c9641b7ec9184ac3dae0f7f9db1 Mon Sep 17 00:00:00 2001 From: tolstislon <34726608+tolstislon@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:11:27 +0300 Subject: [PATCH] Updated patterns to libphonenumber v8.13.22 (#98) --- .github/workflows/python-package.yml | 2 +- Pipfile | 2 +- phone_gen/patterns.py | 22 +++++++++++----------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a6a2ef7..d49f0dd 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.21 + python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.22 python -m pip install -e . - name: Flake8 run: | diff --git a/Pipfile b/Pipfile index 84931fb..a46821f 100644 --- a/Pipfile +++ b/Pipfile @@ -7,7 +7,7 @@ verify_ssl = true black = "==23.9.1" flake8 = "==6.1.0" pep8-naming = "==0.13.3" -phonenumbers = "==8.13.21" +phonenumbers = "==8.13.22" pytest = "==7.4.2" pytest-cov = "==4.1.0" requests = "==2.31.0" diff --git a/phone_gen/patterns.py b/phone_gen/patterns.py index 36f93f9..a67320b 100644 --- a/phone_gen/patterns.py +++ b/phone_gen/patterns.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- """ -Auto-generated file 2023-09-22 16:02:47 UTC -Resource: https://github.com/google/libphonenumber v8.13.21 +Auto-generated file 2023-09-29 17:05:45 UTC +Resource: https://github.com/google/libphonenumber v8.13.22 """ PATTERNS = { - "info": "libphonenumber v8.13.21", + "info": "libphonenumber v8.13.22", "data": { "AC": { "code": "247", @@ -245,8 +245,8 @@ }, "CO": { "code": "57", - "pattern": "((601055([0-4][\\d])|(50)[\\d][\\d])|(6010([0-4][\\d])|(5[0-4])[\\d]{4})|(60[124-8][2-9][\\d]{6}))", - "mobile": "((3333(0(0[\\d])|(1[0-5]))|([4-9][\\d][\\d])[\\d]{3})|((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}))", + "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}))", + "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": { "code": "506", @@ -506,7 +506,7 @@ "IL": { "code": "972", "pattern": "((153[\\d]{8:9})|(29[1-9][\\d]{5})|((2[0-8])|([3489][\\d])[\\d]{6}))", - "mobile": "((55410[\\d]{4})|(5(([02][02-9])|([149][2-9])|([36][\\d])|(8[3-7])[\\d])|(5(01)|(2[2-9])|(3[0-3])|(4[34])|(5[0-25689])|(6[6-8])|(7[0-267])|(8[7-9])|(9[1-9]))[\\d]{5}))", + "mobile": "((55410[\\d]{4})|(5(([02][02-9])|([149][2-9])|([36][\\d])|(8[3-7])[\\d])|(5(01)|(2[\\d])|(3[0-3])|(4[34])|(5[0-25689])|(6[6-8])|(7[0-267])|(8[7-9])|(9[1-9]))[\\d]{5}))", }, "IM": { "code": "44", @@ -632,7 +632,7 @@ "LI": { "code": "423", "pattern": "(((2(01)|(1[27])|(2[02])|(3[\\d])|(6[02-578])|(96))|(3([24]0)|(33)|(7[0135-7])|(8[048])|(9[0269]))[\\d]{4}))", - "mobile": "(((6((4[5-9])|(5[0-4])[\\d])|(6([0245][\\d])|([17]0)|(3[7-9]))[\\d])|(7([37-9][\\d])|(42)|(56))[\\d]{4}))", + "mobile": "(((6((4[5-9])|(5[0-469])[\\d])|(6([0245][\\d])|([17]0)|(3[7-9]))[\\d])|(7([37-9][\\d])|(42)|(56))[\\d]{4}))", }, "LK": { "code": "94", @@ -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])|(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])|(60)|(7[01578]))|(4(2[\\d])|(60)|(7[01578]))|(9([2-4][\\d])|(5[01])|(7[015]))[\\d]{4}))", }, "ML": { "code": "223", @@ -943,7 +943,7 @@ "SA": { "code": "966", "pattern": "((1(1[\\d])|(2[24-8])|(3[35-8])|(4[3-68])|(6[2-5])|(7[235-7])[\\d]{6}))", - "mobile": "((579[01][\\d]{5})|(5([013-689][\\d])|(7[0-35-8])[\\d]{6}))", + "mobile": "((579[01][\\d]{5})|(5([013-689][\\d])|(7[0-8])[\\d]{6}))", }, "SB": { "code": "677", @@ -1099,7 +1099,7 @@ "TR": { "code": "90", "pattern": "(((2([13][26])|([28][2468])|([45][268])|([67][246]))|(3([13][28])|([24-6][2468])|([78][02468])|(92))|(4([16][246])|([23578][2468])|(4[26]))[\\d]{7}))", - "mobile": "((56161[\\d]{5})|(5(0[15-7])|(1[06])|(24)|([34][\\d])|(5[1-59])|(9[46])[\\d]{7}))", + "mobile": "((561(011)|(61[\\d])[\\d]{4})|(5(0[15-7])|(1[06])|(24)|([34][\\d])|(5[1-59])|(9[46])[\\d]{7}))", }, "TT": { "code": "1", @@ -1129,7 +1129,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])|(32)|(5[0-4])|(6[15-9]))|([34][\\d]{3})[\\d]{5}))", - "mobile": "((726[01][\\d]{5})|(7([01578][\\d])|(20)|(36)|(4[0-4])|(6[0-5])|(9[89])[\\d]{6}))", + "mobile": "((726[01][\\d]{5})|(7([01578][\\d])|(20)|(36)|(4[0-4])|(6[0-6])|(9[89])[\\d]{6}))", }, "US": { "code": "1",