Skip to content

Commit

Permalink
Generated files for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Nov 16, 2024
1 parent a8ca14e commit d88b077
Show file tree
Hide file tree
Showing 15 changed files with 125 additions and 86 deletions.
70 changes: 35 additions & 35 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
}
50 changes: 25 additions & 25 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
}
39 changes: 38 additions & 1 deletion python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down Expand Up @@ -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'},
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_AR.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,)),
Expand Down
10 changes: 6 additions & 4 deletions python/phonenumbers/data/region_BJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_BL.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions python/phonenumbers/data/region_FI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand All @@ -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)
Loading

0 comments on commit d88b077

Please sign in to comment.