From d88b077645f5366f4238844f4f19cea8d59dbbe6 Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Sat, 16 Nov 2024 07:39:48 +0000 Subject: [PATCH] Generated files for metadata --- python/phonenumbers/carrierdata/data0.py | 70 +++++++++++----------- python/phonenumbers/carrierdata/data1.py | 50 ++++++++-------- python/phonenumbers/carrierdata/data2.py | 39 +++++++++++- python/phonenumbers/data/region_AR.py | 4 +- python/phonenumbers/data/region_BJ.py | 10 ++-- python/phonenumbers/data/region_BL.py | 4 +- python/phonenumbers/data/region_FI.py | 6 +- python/phonenumbers/data/region_GE.py | 2 +- python/phonenumbers/data/region_GP.py | 6 +- python/phonenumbers/data/region_HR.py | 2 +- python/phonenumbers/data/region_MF.py | 4 +- python/phonenumbers/data/region_PL.py | 2 +- python/phonenumbers/data/region_SG.py | 2 +- python/phonenumbers/shortdata/region_BJ.py | 6 +- python/phonenumbers/shortdata/region_FI.py | 4 +- 15 files changed, 125 insertions(+), 86 deletions(-) diff --git a/python/phonenumbers/carrierdata/data0.py b/python/phonenumbers/carrierdata/data0.py index b8402f325..40f8ebe42 100644 --- a/python/phonenumbers/carrierdata/data0.py +++ b/python/phonenumbers/carrierdata/data0.py @@ -953,6 +953,35 @@ '22897':{'en': 'TOGOCEL'}, '22898':{'en': 'Moov'}, '22899':{'en': 'Moov'}, + '2290140':{'en': 'SBIN'}, + '2290141':{'en': 'SBIN'}, + '2290142':{'en': 'MTN'}, + '2290143':{'en': 'SBIN'}, + '2290144':{'en': 'SBIN'}, + '2290145':{'en': 'Moov'}, + '2290146':{'en': 'MTN'}, + '2290147':{'en': 'SBIN'}, + '229015':{'en': 'MTN'}, + '2290155':{'en': 'Moov'}, + '2290158':{'en': 'Moov'}, + '2290160':{'en': 'Moov'}, + '2290161':{'en': 'MTN'}, + '2290162':{'en': 'MTN'}, + '2290163':{'en': 'Moov'}, + '2290164':{'en': 'Moov'}, + '2290165':{'en': 'Moov'}, + '2290166':{'en': 'MTN'}, + '2290167':{'en': 'MTN'}, + '2290168':{'en': 'Moov'}, + '2290169':{'en': 'MTN'}, + '2290190':{'en': 'MTN'}, + '2290191':{'en': 'MTN'}, + '2290194':{'en': 'Moov'}, + '2290195':{'en': 'Moov'}, + '2290196':{'en': 'MTN'}, + '2290197':{'en': 'MTN'}, + '2290198':{'en': 'Moov'}, + '2290199':{'en': 'Moov'}, '2294':{'en': 'Celtiis'}, '22942':{'en': 'MTN'}, '22946':{'en': 'MTN'}, @@ -3348,6 +3377,7 @@ '38597595':{'en': 'YATECO'}, '38597596':{'en': 'Altavox'}, '38597597':{'en': 'INNOVAC'}, + '38597599':{'en': 'Digicom'}, '385976':{'en': 'Hrvatski Telekom'}, '385977':{'en': 'Hrvatski Telekom'}, '385979':{'en': 'Hrvatski Telekom'}, @@ -6762,6 +6792,7 @@ '482114':{'en': 'Plus'}, '482115':{'en': 'Plus'}, '48212':{'en': 'Orange'}, + '48213':{'en': 'Plus'}, '48450':{'en': 'Play'}, '48454':{'en': 'Orange'}, '484590':{'en': 'Play'}, @@ -6843,8 +6874,8 @@ '4857975':{'en': 'UPC Polska'}, '4857976':{'en': 'TELENABLER'}, '4857977':{'en': 'IM Consulting Izabela'}, - '4857978':{'en': 'EZ PHONE MOBILE'}, - '4857979':{'en': 'EZ PHONE MOBILE'}, + '4857978':{'en': 'Plus'}, + '4857979':{'en': 'Plus'}, '485798':{'en': 'Play'}, '485799':{'en': 'Play'}, '48600':{'en': 'T-Mobile'}, @@ -6978,16 +7009,9 @@ '48783':{'en': 'Plus'}, '48784':{'en': 'T-Mobile'}, '48785':{'en': 'Plus'}, - '4878600':{'en': 'JMDI'}, - '4878601':{'en': 'Plus'}, - '4878602':{'en': 'Plus'}, - '4878603':{'en': 'Plus'}, - '4878604':{'en': 'Plus'}, - '4878605':{'en': 'Plus'}, - '4878606':{'en': 'Plus'}, + '487860':{'en': 'Plus'}, '4878607':{'en': 'Play'}, '4878608':{'en': 'Play'}, - '4878609':{'en': 'Plus'}, '487861':{'en': 'Play'}, '487862':{'en': 'Play'}, '487863':{'en': 'Orange'}, @@ -7047,6 +7071,7 @@ '4888444':{'en': 'CARITAS'}, '4888446':{'en': 'Plus'}, '4888447':{'en': 'Plus'}, + '4888448':{'en': 'Plus'}, '4888449':{'en': 'Plus'}, '488845':{'en': 'Plus'}, '488846':{'en': 'Play'}, @@ -9994,29 +10019,4 @@ '552899966':{'en': 'Vivo'}, '552899967':{'en': 'Vivo'}, '552899968':{'en': 'Vivo'}, - '552899969':{'en': 'Vivo'}, - '552899971':{'en': 'Vivo'}, - '552899972':{'en': 'Vivo'}, - '552899973':{'en': 'Vivo'}, - '552899974':{'en': 'Vivo'}, - '552899975':{'en': 'Vivo'}, - '552899976':{'en': 'Vivo'}, - '552899977':{'en': 'Vivo'}, - '552899978':{'en': 'Vivo'}, - '552899979':{'en': 'Vivo'}, - '552899981':{'en': 'Vivo'}, - '552899982':{'en': 'Vivo'}, - '552899983':{'en': 'Vivo'}, - '552899984':{'en': 'Vivo'}, - '552899985':{'en': 'Vivo'}, - '552899986':{'en': 'Vivo'}, - '552899987':{'en': 'Vivo'}, - '552899988':{'en': 'Vivo'}, - '552899989':{'en': 'Vivo'}, - '552899991':{'en': 'Vivo'}, - '552899992':{'en': 'Vivo'}, - '552899993':{'en': 'Vivo'}, - '552899994':{'en': 'Vivo'}, - '552899995':{'en': 'Vivo'}, - '552899996':{'en': 'Vivo'}, } diff --git a/python/phonenumbers/carrierdata/data1.py b/python/phonenumbers/carrierdata/data1.py index a19d5bf0a..baedd64a6 100644 --- a/python/phonenumbers/carrierdata/data1.py +++ b/python/phonenumbers/carrierdata/data1.py @@ -19,6 +19,31 @@ # limitations under the License. data = { + '552899969':{'en': 'Vivo'}, + '552899971':{'en': 'Vivo'}, + '552899972':{'en': 'Vivo'}, + '552899973':{'en': 'Vivo'}, + '552899974':{'en': 'Vivo'}, + '552899975':{'en': 'Vivo'}, + '552899976':{'en': 'Vivo'}, + '552899977':{'en': 'Vivo'}, + '552899978':{'en': 'Vivo'}, + '552899979':{'en': 'Vivo'}, + '552899981':{'en': 'Vivo'}, + '552899982':{'en': 'Vivo'}, + '552899983':{'en': 'Vivo'}, + '552899984':{'en': 'Vivo'}, + '552899985':{'en': 'Vivo'}, + '552899986':{'en': 'Vivo'}, + '552899987':{'en': 'Vivo'}, + '552899988':{'en': 'Vivo'}, + '552899989':{'en': 'Vivo'}, + '552899991':{'en': 'Vivo'}, + '552899992':{'en': 'Vivo'}, + '552899993':{'en': 'Vivo'}, + '552899994':{'en': 'Vivo'}, + '552899995':{'en': 'Vivo'}, + '552899996':{'en': 'Vivo'}, '552899997':{'en': 'Vivo'}, '552899998':{'en': 'Vivo'}, '55319820':{'en': 'Claro'}, @@ -9994,29 +10019,4 @@ '569918':{'en': 'Movistar'}, '569919':{'en': 'Movistar'}, '569920':{'en': 'Claro'}, - '569921':{'en': 'Entel'}, - '569922':{'en': 'Movistar'}, - '569923':{'en': 'Movistar'}, - '569924':{'en': 'Movistar'}, - '569925':{'en': 'Movistar'}, - '569926':{'en': 'Movistar'}, - '569927':{'en': 'Movistar'}, - '5699280':{'en': 'Movistar'}, - '5699281':{'en': 'Movistar'}, - '5699282':{'en': 'Movistar'}, - '5699283':{'en': 'Movistar'}, - '5699284':{'en': 'Movistar'}, - '5699286':{'en': 'Movistar'}, - '5699287':{'en': 'Movistar'}, - '5699289':{'en': 'Entel'}, - '569929':{'en': 'Entel'}, - '569930':{'en': 'Entel'}, - '569931':{'en': 'Entel'}, - '569932':{'en': 'Movistar'}, - '569933':{'en': 'Movistar'}, - '569934':{'en': 'Movistar'}, - '569935':{'en': 'Entel'}, - '569936':{'en': 'Movistar'}, - '569937':{'en': 'Movistar'}, - '5699380':{'en': 'Movistar'}, } diff --git a/python/phonenumbers/carrierdata/data2.py b/python/phonenumbers/carrierdata/data2.py index 9706c5975..4ceeaa742 100644 --- a/python/phonenumbers/carrierdata/data2.py +++ b/python/phonenumbers/carrierdata/data2.py @@ -19,6 +19,31 @@ # limitations under the License. data = { + '569921':{'en': 'Entel'}, + '569922':{'en': 'Movistar'}, + '569923':{'en': 'Movistar'}, + '569924':{'en': 'Movistar'}, + '569925':{'en': 'Movistar'}, + '569926':{'en': 'Movistar'}, + '569927':{'en': 'Movistar'}, + '5699280':{'en': 'Movistar'}, + '5699281':{'en': 'Movistar'}, + '5699282':{'en': 'Movistar'}, + '5699283':{'en': 'Movistar'}, + '5699284':{'en': 'Movistar'}, + '5699286':{'en': 'Movistar'}, + '5699287':{'en': 'Movistar'}, + '5699289':{'en': 'Entel'}, + '569929':{'en': 'Entel'}, + '569930':{'en': 'Entel'}, + '569931':{'en': 'Entel'}, + '569932':{'en': 'Movistar'}, + '569933':{'en': 'Movistar'}, + '569934':{'en': 'Movistar'}, + '569935':{'en': 'Entel'}, + '569936':{'en': 'Movistar'}, + '569937':{'en': 'Movistar'}, + '5699380':{'en': 'Movistar'}, '5699381':{'en': 'Movistar'}, '5699382':{'en': 'Entel'}, '5699383':{'en': 'Entel'}, @@ -462,6 +487,11 @@ '59069135':{'en': 'Orange'}, '590694':{'en': 'Digicel'}, '590696':{'en': 'Digicel'}, + '59070900':{'en': u('Free Cara\u00efbe')}, + '59070901':{'en': 'Outremer Telecom'}, + '59070902':{'en': 'Digicel'}, + '59070903':{'en': 'Orange'}, + '59070904':{'en': 'Dauphin Telecom'}, '5916':{'en': 'Tigo'}, '5917':{'en': 'Tigo'}, '59174':{'en': 'Entel'}, @@ -1352,6 +1382,7 @@ '658094':{'en': 'M1'}, '658095':{'en': 'SingTel'}, '658096':{'en': 'Simba'}, + '658097':{'en': 'CUniq'}, '658098':{'en': 'Simba'}, '658099':{'en': 'SingTel'}, '6581':{'en': 'StarHub'}, @@ -1683,7 +1714,11 @@ '658950':{'en': 'M1'}, '658951':{'en': 'M1'}, '658952':{'en': 'M1'}, - '65896':{'en': 'Simba'}, + '658960':{'en': 'Simba'}, + '658961':{'en': 'Simba'}, + '658962':{'en': 'Simba'}, + '658963':{'en': 'SingTel'}, + '658964':{'en': 'SingTel'}, '659001':{'en': 'StarHub'}, '659002':{'en': 'StarHub'}, '659003':{'en': 'StarHub'}, @@ -8831,6 +8866,8 @@ '995551':{'en': 'MagtiCom'}, '9955520':{'en': 'Premium Net International SRL'}, '9955522':{'en': 'Asanet'}, + '995553':{'en': 'Silknet'}, + '995554':{'en': 'Silknet'}, '995555':{'en': 'Silknet'}, '995557':{'en': 'Silknet'}, '995558':{'en': 'Silknet'}, diff --git a/python/phonenumbers/data/region_AR.py b/python/phonenumbers/data/region_AR.py index 45f12114f..55cf58ebf 100644 --- a/python/phonenumbers/data/region_AR.py +++ b/python/phonenumbers/data/region_AR.py @@ -3,8 +3,8 @@ PHONE_METADATA_AR = PhoneMetadata(id='AR', country_code=54, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}', possible_length=(10, 11), possible_length_local_only=(6, 7, 8)), - fixed_line=PhoneNumberDesc(national_number_pattern='3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:657|9(?:54|66))|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|920)|3(?:4(?:46|8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:62|76|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|5[3-6]|8[3-68])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|35|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}', example_number='1123456789', possible_length=(10,), possible_length_local_only=(6, 7, 8)), - mobile=PhoneNumberDesc(national_number_pattern='93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:657|9(?:54|66))|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|920)|3(?:4(?:46|8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:62|76|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|5[3-6]|8[3-68]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|35|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}', example_number='91123456789', possible_length=(10, 11), possible_length_local_only=(6, 7, 8)), + fixed_line=PhoneNumberDesc(national_number_pattern='3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:21[2-6]|(?:3[06]|49)4|6(?:04|1[2-8])|9[17][4-6])|3(?:(?:36|64)4|4(?:1[2-8]|[25][4-6]|84)|5(?:1[2-9]|[38][4-6])|8(?:[17][2-6]|3[4-6]|8[3-68])))\\d{6}|(?:2(?:23|64|99)|3(?:43|85))[3-6]\\d{6}|(?:2(?:657|9(?:54|66))|3(?:487|7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:[28]0|37|6[36]|9[48])|3(?:62|7[069]|80))[45]\\d{6}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:2(?:62|81)|320|622|9(?:42|83))|3(?:329|4(?:62|76|89)|564))[2-6]\\d{5}|(?:2(?:284|3(?:02|23)|477|920)|3(?:4(?:46|[89]2)|541|878))[2-7]\\d{5}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|35|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}', example_number='1123456789', possible_length=(10,), possible_length_local_only=(6, 7, 8)), + mobile=PhoneNumberDesc(national_number_pattern='93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:21[2-6]|(?:3[06]|49)4|6(?:04|1[2-8])|9[17][4-6])|3(?:(?:36|64)4|4(?:1[2-8]|[25][4-6]|84)|5(?:1[2-9]|[38][4-6])|8(?:[17][2-6]|3[4-6]|8[3-68]))))\\d{6}|9(?:2(?:23|64|99)|3(?:43|85))[3-6]\\d{6}|9(?:2(?:657|9(?:54|66))|3(?:487|7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:[28]0|37|6[36]|9[48])|3(?:62|7[069]|80))[45]\\d{6}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:2(?:62|81)|320|622|9(?:42|83))|3(?:329|4(?:62|76|89)|564))[2-6]\\d{5}|9(?:2(?:284|3(?:02|23)|477|920)|3(?:4(?:46|[89]2)|541|878))[2-7]\\d{5}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|35|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}', example_number='91123456789', possible_length=(10, 11), possible_length_local_only=(6, 7, 8)), toll_free=PhoneNumberDesc(national_number_pattern='800\\d{7,8}', example_number='8001234567', possible_length=(10, 11)), premium_rate=PhoneNumberDesc(national_number_pattern='60[04579]\\d{7}', example_number='6001234567', possible_length=(10,)), uan=PhoneNumberDesc(national_number_pattern='810\\d{7}', example_number='8101234567', possible_length=(10,)), diff --git a/python/phonenumbers/data/region_BJ.py b/python/phonenumbers/data/region_BJ.py index cde802bac..0fc8bb2b8 100644 --- a/python/phonenumbers/data/region_BJ.py +++ b/python/phonenumbers/data/region_BJ.py @@ -2,9 +2,11 @@ from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_BJ = PhoneMetadata(id='BJ', country_code=229, international_prefix='00', - general_desc=PhoneNumberDesc(national_number_pattern='[24-689]\\d{7}', possible_length=(8,)), - fixed_line=PhoneNumberDesc(national_number_pattern='2090\\d{4}|2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}', example_number='20211234', possible_length=(8,)), - mobile=PhoneNumberDesc(national_number_pattern='(?:4[0-8]|[56]\\d|9[013-9])\\d{6}', example_number='90011234', possible_length=(8,)), + general_desc=PhoneNumberDesc(national_number_pattern='(?:01\\d|[24-689])\\d{7}', possible_length=(8, 10)), + fixed_line=PhoneNumberDesc(national_number_pattern='2090\\d{4}|(?:012\\d\\d|2(?:02|1[037]|2[45]|3[68]|4\\d))\\d{5}', example_number='0120211234', possible_length=(8, 10)), + mobile=PhoneNumberDesc(national_number_pattern='(?:01(?:2[5-9]|[4-69]\\d)|4[0-8]|[56]\\d|9[013-9])\\d{6}', example_number='0195123456', possible_length=(8, 10)), voip=PhoneNumberDesc(national_number_pattern='857[58]\\d{4}', example_number='85751234', possible_length=(8,)), uan=PhoneNumberDesc(national_number_pattern='81\\d{6}', example_number='81123456', possible_length=(8,)), - number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[24-689]'])]) + number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[24-689]']), + NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4 \\5', leading_digits_pattern=['0'])], + mobile_number_portable_region=True) diff --git a/python/phonenumbers/data/region_BL.py b/python/phonenumbers/data/region_BL.py index a9811bab4..1b6e80035 100644 --- a/python/phonenumbers/data/region_BL.py +++ b/python/phonenumbers/data/region_BL.py @@ -2,9 +2,9 @@ from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_BL = PhoneMetadata(id='BL', country_code=590, international_prefix='00', - general_desc=PhoneNumberDesc(national_number_pattern='590\\d{6}|(?:69|80|9\\d)\\d{7}', possible_length=(9,)), + general_desc=PhoneNumberDesc(national_number_pattern='(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}', possible_length=(9,)), fixed_line=PhoneNumberDesc(national_number_pattern='590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}', example_number='590271234', possible_length=(9,)), - mobile=PhoneNumberDesc(national_number_pattern='69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}', example_number='690001234', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}', example_number='690001234', possible_length=(9,)), toll_free=PhoneNumberDesc(national_number_pattern='80[0-5]\\d{6}', example_number='800012345', possible_length=(9,)), voip=PhoneNumberDesc(national_number_pattern='9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}', example_number='976012345', possible_length=(9,)), national_prefix='0', diff --git a/python/phonenumbers/data/region_FI.py b/python/phonenumbers/data/region_FI.py index e52c7ffbc..6a14a3fb7 100644 --- a/python/phonenumbers/data/region_FI.py +++ b/python/phonenumbers/data/region_FI.py @@ -3,7 +3,7 @@ PHONE_METADATA_FI = PhoneMetadata(id='FI', country_code=358, international_prefix='00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))', general_desc=PhoneNumberDesc(national_number_pattern='[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}', possible_length=(5, 6, 7, 8, 9, 10, 11, 12)), - fixed_line=PhoneNumberDesc(national_number_pattern='1[35-7][1-8]\\d{3,6}|(?:1[49][1-8]|[23568][1-8]\\d|9(?:00|[1-8]\\d))\\d{2,6}', example_number='131234567', possible_length=(5, 6, 7, 8, 9)), + fixed_line=PhoneNumberDesc(national_number_pattern='1[3-7][1-8]\\d{3,6}|(?:19[1-8]|[23568][1-8]\\d|9(?:00|[1-8]\\d))\\d{2,6}', example_number='131234567', possible_length=(5, 6, 7, 8, 9)), mobile=PhoneNumberDesc(national_number_pattern='4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}', example_number='412345678', possible_length=(6, 7, 8, 9, 10)), toll_free=PhoneNumberDesc(national_number_pattern='800\\d{4,6}', example_number='800123456', possible_length=(7, 8, 9)), premium_rate=PhoneNumberDesc(national_number_pattern='[67]00\\d{5,6}', example_number='600123456', possible_length=(8, 9)), @@ -18,12 +18,12 @@ NumberFormat(pattern='(\\d{3})(\\d{3,7})', format='\\1 \\2', leading_digits_pattern=['(?:[1-3]0|[68])0|70[07-9]'], national_prefix_formatting_rule='0\\1'), NumberFormat(pattern='(\\d{2})(\\d{4,8})', format='\\1 \\2', leading_digits_pattern=['[14]|2[09]|50|7[135]'], national_prefix_formatting_rule='0\\1'), NumberFormat(pattern='(\\d{2})(\\d{6,10})', format='\\1 \\2', leading_digits_pattern=['7'], national_prefix_formatting_rule='0\\1'), - NumberFormat(pattern='(\\d)(\\d{4,9})', format='\\1 \\2', leading_digits_pattern=['(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9'], national_prefix_formatting_rule='0\\1')], + NumberFormat(pattern='(\\d)(\\d{4,9})', format='\\1 \\2', leading_digits_pattern=['(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9'], national_prefix_formatting_rule='0\\1')], intl_number_format=[NumberFormat(pattern='(\\d{5})', format='\\1', leading_digits_pattern=['20[2-59]']), NumberFormat(pattern='(\\d{3})(\\d{3,7})', format='\\1 \\2', leading_digits_pattern=['(?:[1-3]0|[68])0|70[07-9]']), NumberFormat(pattern='(\\d{2})(\\d{4,8})', format='\\1 \\2', leading_digits_pattern=['[14]|2[09]|50|7[135]']), NumberFormat(pattern='(\\d{2})(\\d{6,10})', format='\\1 \\2', leading_digits_pattern=['7']), - NumberFormat(pattern='(\\d)(\\d{4,9})', format='\\1 \\2', leading_digits_pattern=['(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9'])], + NumberFormat(pattern='(\\d)(\\d{4,9})', format='\\1 \\2', leading_digits_pattern=['(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9'])], main_country_for_code=True, leading_digits='1[03-79]|[2-9]', mobile_number_portable_region=True) diff --git a/python/phonenumbers/data/region_GE.py b/python/phonenumbers/data/region_GE.py index 76309264c..13fd8613d 100644 --- a/python/phonenumbers/data/region_GE.py +++ b/python/phonenumbers/data/region_GE.py @@ -4,7 +4,7 @@ PHONE_METADATA_GE = PhoneMetadata(id='GE', country_code=995, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:[3-57]\\d\\d|800)\\d{6}', possible_length=(9,), possible_length_local_only=(6, 7)), fixed_line=PhoneNumberDesc(national_number_pattern='(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}', example_number='322123456', possible_length=(9,), possible_length_local_only=(6, 7)), - mobile=PhoneNumberDesc(national_number_pattern='5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|11|22|3[0-6]|44|5[05]|77|88|9[09])|111|22[02]|77\\d)|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-4])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200)|6[89]\\d\\d|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}', example_number='555123456', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|11|22|3[0-6]|44|5[05]|77|88|9[09])|111|22[02]|77\\d)|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-4])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|444)|6[89]\\d\\d|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}', example_number='555123456', possible_length=(9,)), toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)), voip=PhoneNumberDesc(national_number_pattern='70[67]\\d{6}', example_number='706123456', possible_length=(9,)), no_international_dialling=PhoneNumberDesc(national_number_pattern='70[67]\\d{6}', possible_length=(9,)), diff --git a/python/phonenumbers/data/region_GP.py b/python/phonenumbers/data/region_GP.py index 55d248175..bb6af6ca9 100644 --- a/python/phonenumbers/data/region_GP.py +++ b/python/phonenumbers/data/region_GP.py @@ -2,14 +2,14 @@ from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GP = PhoneMetadata(id='GP', country_code=590, international_prefix='00', - general_desc=PhoneNumberDesc(national_number_pattern='590\\d{6}|(?:69|80|9\\d)\\d{7}', possible_length=(9,)), + general_desc=PhoneNumberDesc(national_number_pattern='(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}', possible_length=(9,)), fixed_line=PhoneNumberDesc(national_number_pattern='590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}', example_number='590201234', possible_length=(9,)), - mobile=PhoneNumberDesc(national_number_pattern='69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}', example_number='690001234', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}', example_number='690001234', possible_length=(9,)), toll_free=PhoneNumberDesc(national_number_pattern='80[0-5]\\d{6}', example_number='800012345', possible_length=(9,)), voip=PhoneNumberDesc(national_number_pattern='9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}', example_number='976012345', possible_length=(9,)), national_prefix='0', national_prefix_for_parsing='0', - number_format=[NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[569]'], national_prefix_formatting_rule='0\\1'), + number_format=[NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[5-79]'], national_prefix_formatting_rule='0\\1'), NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['8'], national_prefix_formatting_rule='0\\1')], main_country_for_code=True, mobile_number_portable_region=True) diff --git a/python/phonenumbers/data/region_HR.py b/python/phonenumbers/data/region_HR.py index c30c5de3e..dda8e9431 100644 --- a/python/phonenumbers/data/region_HR.py +++ b/python/phonenumbers/data/region_HR.py @@ -4,7 +4,7 @@ PHONE_METADATA_HR = PhoneMetadata(id='HR', country_code=385, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}', possible_length=(6, 7, 8, 9)), fixed_line=PhoneNumberDesc(national_number_pattern='1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}', example_number='12345678', possible_length=(8, 9), possible_length_local_only=(6, 7)), - mobile=PhoneNumberDesc(national_number_pattern='9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|55|77|9[5-7])))\\d{4}|98\\d{6}', example_number='921234567', possible_length=(8, 9)), + mobile=PhoneNumberDesc(national_number_pattern='9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|55|77|9[5-79])))\\d{4}|98\\d{6}', example_number='921234567', possible_length=(8, 9)), toll_free=PhoneNumberDesc(national_number_pattern='80\\d{5,7}', example_number='800123456', possible_length=(7, 8, 9)), premium_rate=PhoneNumberDesc(national_number_pattern='6[01459]\\d{6}|6[01]\\d{4,5}', example_number='611234', possible_length=(6, 7, 8)), personal_number=PhoneNumberDesc(national_number_pattern='7[45]\\d{6}', example_number='74123456', possible_length=(8,)), diff --git a/python/phonenumbers/data/region_MF.py b/python/phonenumbers/data/region_MF.py index 3aada276a..b3a91404f 100644 --- a/python/phonenumbers/data/region_MF.py +++ b/python/phonenumbers/data/region_MF.py @@ -2,9 +2,9 @@ from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_MF = PhoneMetadata(id='MF', country_code=590, international_prefix='00', - general_desc=PhoneNumberDesc(national_number_pattern='590\\d{6}|(?:69|80|9\\d)\\d{7}', possible_length=(9,)), + general_desc=PhoneNumberDesc(national_number_pattern='(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}', possible_length=(9,)), fixed_line=PhoneNumberDesc(national_number_pattern='590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}', example_number='590271234', possible_length=(9,)), - mobile=PhoneNumberDesc(national_number_pattern='69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}', example_number='690001234', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}', example_number='690001234', possible_length=(9,)), toll_free=PhoneNumberDesc(national_number_pattern='80[0-5]\\d{6}', example_number='800012345', possible_length=(9,)), voip=PhoneNumberDesc(national_number_pattern='9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}', example_number='976012345', possible_length=(9,)), national_prefix='0', diff --git a/python/phonenumbers/data/region_PL.py b/python/phonenumbers/data/region_PL.py index 1acb70db4..f9dcfe519 100644 --- a/python/phonenumbers/data/region_PL.py +++ b/python/phonenumbers/data/region_PL.py @@ -4,7 +4,7 @@ PHONE_METADATA_PL = PhoneMetadata(id='PL', country_code=48, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}', possible_length=(6, 7, 8, 9, 10)), fixed_line=PhoneNumberDesc(national_number_pattern='47\\d{7}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))', example_number='123456789', possible_length=(7, 9)), - mobile=PhoneNumberDesc(national_number_pattern='21(?:1[013-5]|2\\d)\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}', example_number='512345678', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='21(?:1[013-5]|2\\d|3[4-9])\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}', example_number='512345678', possible_length=(9,)), toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6,7}', example_number='800123456', possible_length=(9, 10)), premium_rate=PhoneNumberDesc(national_number_pattern='70[01346-8]\\d{6}', example_number='701234567', possible_length=(9,)), shared_cost=PhoneNumberDesc(national_number_pattern='801\\d{6}', example_number='801234567', possible_length=(9,)), diff --git a/python/phonenumbers/data/region_SG.py b/python/phonenumbers/data/region_SG.py index cdf534145..d823d6139 100644 --- a/python/phonenumbers/data/region_SG.py +++ b/python/phonenumbers/data/region_SG.py @@ -4,7 +4,7 @@ PHONE_METADATA_SG = PhoneMetadata(id='SG', country_code=65, international_prefix='0[0-3]\\d', general_desc=PhoneNumberDesc(national_number_pattern='(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}', possible_length=(8, 10, 11)), fixed_line=PhoneNumberDesc(national_number_pattern='662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}', example_number='61234567', possible_length=(8,)), - mobile=PhoneNumberDesc(national_number_pattern='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}', example_number='81234567', possible_length=(8,)), + mobile=PhoneNumberDesc(national_number_pattern='896[0-4]\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-5])|9[0-8]\\d)\\d{5}', example_number='81234567', possible_length=(8,)), toll_free=PhoneNumberDesc(national_number_pattern='(?:18|8)00\\d{7}', example_number='18001234567', possible_length=(10, 11)), premium_rate=PhoneNumberDesc(national_number_pattern='1900\\d{7}', example_number='19001234567', possible_length=(11,)), voip=PhoneNumberDesc(national_number_pattern='(?:3[12]\\d|666)\\d{5}', example_number='31234567', possible_length=(8,)), diff --git a/python/phonenumbers/shortdata/region_BJ.py b/python/phonenumbers/shortdata/region_BJ.py index 9658f935d..d2e6ce318 100644 --- a/python/phonenumbers/shortdata/region_BJ.py +++ b/python/phonenumbers/shortdata/region_BJ.py @@ -3,8 +3,8 @@ PHONE_METADATA_BJ = PhoneMetadata(id='BJ', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[17]\\d{2,3}', possible_length=(3, 4)), - toll_free=PhoneNumberDesc(national_number_pattern='11[78]|7[3-5]\\d\\d', example_number='117', possible_length=(3, 4)), - emergency=PhoneNumberDesc(national_number_pattern='11[78]', example_number='117', possible_length=(3,)), - short_code=PhoneNumberDesc(national_number_pattern='1(?:1[78]|2[02-5]|60)|7[0-5]\\d\\d', example_number='117', possible_length=(3, 4)), + toll_free=PhoneNumberDesc(national_number_pattern='1(?:1[246-8]|3[68]|6[06])|7[3-5]\\d\\d', example_number='112', possible_length=(3, 4)), + emergency=PhoneNumberDesc(national_number_pattern='11[246-8]', example_number='112', possible_length=(3,)), + short_code=PhoneNumberDesc(national_number_pattern='1(?:05|1[24-8]|2[02-5]|3[126-8]|5[05]|6[06]|89)|7[0-5]\\d\\d', example_number='105', possible_length=(3, 4)), carrier_specific=PhoneNumberDesc(national_number_pattern='12[02-5]', example_number='120', possible_length=(3,)), short_data=True) diff --git a/python/phonenumbers/shortdata/region_FI.py b/python/phonenumbers/shortdata/region_FI.py index c57bf8884..d759fb2e2 100644 --- a/python/phonenumbers/shortdata/region_FI.py +++ b/python/phonenumbers/shortdata/region_FI.py @@ -5,6 +5,6 @@ general_desc=PhoneNumberDesc(national_number_pattern='[17]\\d\\d(?:\\d{2,3})?', possible_length=(3, 5, 6)), toll_free=PhoneNumberDesc(national_number_pattern='11(?:2|6\\d{3})', example_number='112', possible_length=(3, 6)), emergency=PhoneNumberDesc(national_number_pattern='112', example_number='112', possible_length=(3,)), - short_code=PhoneNumberDesc(national_number_pattern='11(?:2|6(?:00[06]|1(?:1[17]|23)))|(?:1[235-8]\\d|75[12])\\d\\d', example_number='112', possible_length=(3, 5, 6)), - standard_rate=PhoneNumberDesc(national_number_pattern='1[235-8]\\d{3}', example_number='12000', possible_length=(5,)), + short_code=PhoneNumberDesc(national_number_pattern='11(?:2|6(?:00[06]|1(?:1[17]|23)))|(?:1[2-8]\\d|75[12])\\d\\d', example_number='112', possible_length=(3, 5, 6)), + standard_rate=PhoneNumberDesc(national_number_pattern='1[2-8]\\d{3}', example_number='12000', possible_length=(5,)), short_data=True)