From 0733a3b94d1fff76774efbb675c9049807e7c041 Mon Sep 17 00:00:00 2001 From: tolstislon <34726608+tolstislon@users.noreply.github.com> Date: Sat, 15 Jun 2024 21:15:13 +0300 Subject: [PATCH] Updated patterns to libphonenumber v8.13.39 (#114) --- .github/workflows/python-package.yml | 2 +- Pipfile | 2 +- phone_gen/patterns.py | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 52b300d..48bb46f 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.38 + python -m pip install flake8 pep8-naming pytest black pytest-cov phonenumbers==8.13.39 python -m pip install -e . - name: Flake8 run: | diff --git a/Pipfile b/Pipfile index 2e94346..1000598 100644 --- a/Pipfile +++ b/Pipfile @@ -7,7 +7,7 @@ verify_ssl = true black = "==24.4.2" flake8 = "==7.0.0" pep8-naming = "==0.14.1" -phonenumbers = "==8.13.38" +phonenumbers = "==8.13.39" pytest = "==8.2.2" pytest-cov = "==5.0.0" requests = "==2.32.3" diff --git a/phone_gen/patterns.py b/phone_gen/patterns.py index d3edc82..1907bf4 100644 --- a/phone_gen/patterns.py +++ b/phone_gen/patterns.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- """ -Auto-generated file 2024-06-05 12:23:32 UTC -Resource: https://github.com/google/libphonenumber v8.13.38 +Auto-generated file 2024-06-15 18:11:24 UTC +Resource: https://github.com/google/libphonenumber v8.13.39 """ PATTERNS = { - "info": "libphonenumber v8.13.38", + "info": "libphonenumber v8.13.39", "data": { "AC": { "code": "247", @@ -562,7 +562,7 @@ "KE": { "code": "254", "pattern": "(((4[245])|(5[1-79])|(6[01457-9])[\\d]{5:7})|((4[136])|(5[08])|(62)[\\d]{7})|(([24]0)|(66)[\\d]{6:7}))", - "mobile": "(((1(0[0-8])|(1[0-5])|(2[014])|(30))|(7[\\d][\\d])[\\d]{6}))", + "mobile": "(((1(0[0-8])|(1[0-7])|(2[014])|(30))|(7[\\d][\\d])[\\d]{6}))", }, "KG": { "code": "996", @@ -1133,8 +1133,8 @@ }, "US": { "code": "1", - "pattern": "(((5056([0-35-9][\\d])|(4[468]))|(7302[0-4][\\d])[\\d]{4})|((472[24])|(505[2-57-9])|(7306)|(983[2-47-9])[\\d]{6})|((2(0[1-35-9])|(1[02-9])|(2[03-57-9])|(3[1459])|(4[08])|(5[1-46])|(6[0279])|(7[0269])|(8[13]))|(3(0[1-57-9])|(1[02-9])|(2[013569])|(3[0-24679])|(4[167])|(5[0-2])|(6[01349])|(8[056]))|(4(0[124-9])|(1[02-579])|(2[3-5])|(3[0245])|(4[023578])|(58)|(6[349])|(7[0589])|(8[04]))|(5(0[1-47-9])|(1[0235-8])|(20)|(3[0149])|(4[01])|(5[179])|(6[1-47])|(7[0-5])|(8[0256]))|(6(0[1-35-9])|(1[024-9])|(2[03689])|(3[016])|(4[0156])|(5[01679])|(6[0-279])|(78)|(8[0-29]))|(7(0[1-46-8])|(1[2-9])|(2[04-8])|(3[1247])|(4[037])|(5[47])|(6[02359])|(7[0-59])|(8[156]))|(8(0[1-68])|(1[02-8])|(2[068])|(3[0-2589])|(4[03578])|(5[046-9])|(6[02-5])|(7[028]))|(9(0[1346-9])|(1[02-9])|(2[0589])|(3[0146-8])|(4[01357-9])|(5[12469])|(7[0-389])|(8[04-69]))[2-9][\\d]{6}))", - "mobile": "(((5056([0-35-9][\\d])|(4[468]))|(7302[0-4][\\d])[\\d]{4})|((472[24])|(505[2-57-9])|(7306)|(983[2-47-9])[\\d]{6})|((2(0[1-35-9])|(1[02-9])|(2[03-57-9])|(3[1459])|(4[08])|(5[1-46])|(6[0279])|(7[0269])|(8[13]))|(3(0[1-57-9])|(1[02-9])|(2[013569])|(3[0-24679])|(4[167])|(5[0-2])|(6[01349])|(8[056]))|(4(0[124-9])|(1[02-579])|(2[3-5])|(3[0245])|(4[023578])|(58)|(6[349])|(7[0589])|(8[04]))|(5(0[1-47-9])|(1[0235-8])|(20)|(3[0149])|(4[01])|(5[179])|(6[1-47])|(7[0-5])|(8[0256]))|(6(0[1-35-9])|(1[024-9])|(2[03689])|(3[016])|(4[0156])|(5[01679])|(6[0-279])|(78)|(8[0-29]))|(7(0[1-46-8])|(1[2-9])|(2[04-8])|(3[1247])|(4[037])|(5[47])|(6[02359])|(7[0-59])|(8[156]))|(8(0[1-68])|(1[02-8])|(2[068])|(3[0-2589])|(4[03578])|(5[046-9])|(6[02-5])|(7[028]))|(9(0[1346-9])|(1[02-9])|(2[0589])|(3[0146-8])|(4[01357-9])|(5[12469])|(7[0-389])|(8[04-69]))[2-9][\\d]{6}))", + "pattern": "(((3052(0[0-8])|([1-9][\\d]))|(5056([0-35-9][\\d])|(4[468]))|(7302[0-4][\\d])[\\d]{4})|((305[3-9])|(472[24])|(505[2-57-9])|(7306)|(983[2-47-9])[\\d]{6})|((2(0[1-35-9])|(1[02-9])|(2[03-57-9])|(3[1459])|(4[08])|(5[1-46])|(6[0279])|(7[0269])|(8[13]))|(3(0[1-47-9])|(1[02-9])|(2[013569])|(3[0-24679])|(4[167])|(5[0-2])|(6[01349])|(8[056]))|(4(0[124-9])|(1[02-579])|(2[3-5])|(3[0245])|(4[023578])|(58)|(6[349])|(7[0589])|(8[04]))|(5(0[1-47-9])|(1[0235-8])|(20)|(3[0149])|(4[01])|(5[179])|(6[1-47])|(7[0-5])|(8[0256]))|(6(0[1-35-9])|(1[024-9])|(2[03689])|(3[016])|(4[0156])|(5[01679])|(6[0-279])|(78)|(8[0-29]))|(7(0[1-46-8])|(1[2-9])|(2[04-8])|(3[1247])|(4[037])|(5[47])|(6[02359])|(7[0-59])|(8[156]))|(8(0[1-68])|(1[02-8])|(2[068])|(3[0-2589])|(4[03578])|(5[046-9])|(6[02-5])|(7[028]))|(9(0[1346-9])|(1[02-9])|(2[0589])|(3[0146-8])|(4[01357-9])|(5[12469])|(7[0-389])|(8[04-69]))[2-9][\\d]{6}))", + "mobile": "(((3052(0[0-8])|([1-9][\\d]))|(5056([0-35-9][\\d])|(4[468]))|(7302[0-4][\\d])[\\d]{4})|((305[3-9])|(472[24])|(505[2-57-9])|(7306)|(983[2-47-9])[\\d]{6})|((2(0[1-35-9])|(1[02-9])|(2[03-57-9])|(3[1459])|(4[08])|(5[1-46])|(6[0279])|(7[0269])|(8[13]))|(3(0[1-47-9])|(1[02-9])|(2[013569])|(3[0-24679])|(4[167])|(5[0-2])|(6[01349])|(8[056]))|(4(0[124-9])|(1[02-579])|(2[3-5])|(3[0245])|(4[023578])|(58)|(6[349])|(7[0589])|(8[04]))|(5(0[1-47-9])|(1[0235-8])|(20)|(3[0149])|(4[01])|(5[179])|(6[1-47])|(7[0-5])|(8[0256]))|(6(0[1-35-9])|(1[024-9])|(2[03689])|(3[016])|(4[0156])|(5[01679])|(6[0-279])|(78)|(8[0-29]))|(7(0[1-46-8])|(1[2-9])|(2[04-8])|(3[1247])|(4[037])|(5[47])|(6[02359])|(7[0-59])|(8[156]))|(8(0[1-68])|(1[02-8])|(2[068])|(3[0-2589])|(4[03578])|(5[046-9])|(6[02-5])|(7[028]))|(9(0[1346-9])|(1[02-9])|(2[0589])|(3[0146-8])|(4[01357-9])|(5[12469])|(7[0-389])|(8[04-69]))[2-9][\\d]{6}))", }, "UY": { "code": "598",