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 May 17, 2024
1 parent fb1d4f6 commit 91a8a68
Show file tree
Hide file tree
Showing 36 changed files with 168 additions and 155 deletions.
22 changes: 11 additions & 11 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -3410,6 +3410,7 @@
'3939':{'en': '3 Italia'},
'4060':{'en': 'Telekom'},
'4062':{'en': 'Vodafone'},
'4063':{'en': 'Digi Mobil'},
'4064':{'en': 'Orange'},
'407000':{'en': 'Enigma-System'},
'407013':{'en': 'Lycamobile'},
Expand Down Expand Up @@ -3821,6 +3822,13 @@
'447340':{'en': 'Vodafone'},
'447341':{'en': 'Vodafone'},
'447342':{'en': 'Vodafone'},
'447343':{'en': 'Lebara'},
'447349':{'en': 'Vodafone'},
'447350':{'en': 'Vodafone'},
'447351':{'en': 'Vodafone'},
'447352':{'en': 'Vodafone'},
'447353':{'en': 'Vodafone'},
'4473566':{'en': 'Wireless Logic'},
'447360':{'en': 'Three'},
'447361':{'en': 'Three'},
'447362':{'en': 'Three'},
Expand All @@ -3836,7 +3844,9 @@
'4473685':{'en': 'Sky'},
'4473686':{'en': 'Sky'},
'4473690':{'en': 'Telet Research'},
'4473691':{'en': 'Telet Research'},
'4473692':{'en': 'Sky'},
'4473697':{'en': 'Wave Mobile'},
'4473699':{'en': 'Anywhere Sim'},
'447375':{'en': 'EE'},
'447376':{'en': 'EE'},
Expand Down Expand Up @@ -3899,6 +3909,7 @@
'4474080':{'en': 'Truphone'},
'4474081':{'en': 'Truphone'},
'4474082':{'en': 'Truphone'},
'4474086':{'en': 'Truphone'},
'4474088':{'en': 'Truphone'},
'4474089':{'en': 'Truphone'},
'447409':{'en': 'Orange'},
Expand Down Expand Up @@ -10008,15 +10019,4 @@
'5531984':{'en': 'Claro'},
'5531985':{'en': 'Oi'},
'5531986':{'en': 'Oi'},
'5531987':{'en': 'Oi'},
'5531988':{'en': 'Oi'},
'5531989':{'en': 'Oi'},
'553199101':{'en': 'TIM'},
'553199102':{'en': 'TIM'},
'553199103':{'en': 'TIM'},
'553199104':{'en': 'TIM'},
'553199105':{'en': 'TIM'},
'553199106':{'en': 'TIM'},
'553199107':{'en': 'TIM'},
'553199108':{'en': 'TIM'},
}
22 changes: 11 additions & 11 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
# limitations under the License.

data = {
'5531987':{'en': 'Oi'},
'5531988':{'en': 'Oi'},
'5531989':{'en': 'Oi'},
'553199101':{'en': 'TIM'},
'553199102':{'en': 'TIM'},
'553199103':{'en': 'TIM'},
'553199104':{'en': 'TIM'},
'553199105':{'en': 'TIM'},
'553199106':{'en': 'TIM'},
'553199107':{'en': 'TIM'},
'553199108':{'en': 'TIM'},
'553199109':{'en': 'TIM'},
'55319911':{'en': 'TIM'},
'55319912':{'en': 'TIM'},
Expand Down Expand Up @@ -10008,15 +10019,4 @@
'569949':{'en': 'Entel'},
'569950':{'en': 'Entel'},
'569951':{'en': 'Entel'},
'569952':{'en': 'Movistar'},
'569953':{'en': 'Movistar'},
'569954':{'en': 'Movistar'},
'569955':{'en': 'Movistar'},
'569956':{'en': 'Movistar'},
'569957':{'en': 'Entel'},
'5699580':{'en': 'Movistar'},
'5699581':{'en': 'Movistar'},
'5699582':{'en': 'Movistar'},
'5699583':{'en': 'Movistar'},
'5699584':{'en': 'Movistar'},
}
26 changes: 19 additions & 7 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
# limitations under the License.

data = {
'569952':{'en': 'Movistar'},
'569953':{'en': 'Movistar'},
'569954':{'en': 'Movistar'},
'569955':{'en': 'Movistar'},
'569956':{'en': 'Movistar'},
'569957':{'en': 'Entel'},
'5699580':{'en': 'Movistar'},
'5699581':{'en': 'Movistar'},
'5699582':{'en': 'Movistar'},
'5699583':{'en': 'Movistar'},
'5699584':{'en': 'Movistar'},
'5699585':{'en': 'Claro'},
'5699586':{'en': 'Claro'},
'5699587':{'en': 'Claro'},
Expand Down Expand Up @@ -515,8 +526,13 @@
'592722':{'en': 'Digicel Guyana'},
'592725':{'en': 'GTT'},
'592726':{'en': 'GTT'},
'592727':{'en': 'GTT'},
'592728':{'en': 'GTT'},
'59273':{'en': 'E-Networks'},
'59274':{'en': 'GTT'},
'592740':{'en': 'E-Networks'},
'592741':{'en': 'E-Networks'},
'592742':{'en': 'E-Networks'},
'592749':{'en': 'GTT'},
'59393':{'en': 'Claro'},
'5939586':{'en': 'Movistar'},
'5939587':{'en': 'Movistar'},
Expand Down Expand Up @@ -1101,12 +1117,8 @@
'61457':{'en': 'Telstra'},
'61458':{'en': 'Telstra'},
'61459':{'en': 'Telstra'},
'61460':{'en': 'Telstra'},
'61461':{'en': 'Telstra'},
'61462':{'en': 'Telstra'},
'61463':{'en': 'Telstra'},
'6146':{'en': 'Telstra'},
'61466':{'en': 'Optus'},
'61467':{'en': 'Telstra'},
'61468':{'en': 'Optus'},
'61469':{'en': 'Lycamobile'},
'614700':{'en': 'Lycamobile'},
Expand All @@ -1116,7 +1128,7 @@
'614704':{'en': 'Lycamobile'},
'614705':{'en': 'Lycamobile'},
'614706':{'en': 'Lycamobile'},
'614707':{'en': 'Lycamobile'},
'614707':{'en': 'Telstra'},
'61472':{'en': 'Telstra'},
'61473':{'en': 'Telstra'},
'61474':{'en': 'Telstra'},
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_AU.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_AU = PhoneMetadata(id='AU', country_code=61, international_prefix='001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
general_desc=PhoneNumberDesc(national_number_pattern='1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}', possible_length=(5, 6, 7, 8, 9, 10, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}', example_number='212345678', possible_length=(9,), possible_length_local_only=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='180(?:0\\d{3}|2)\\d{3}', example_number='1800123456', possible_length=(7, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='190[0-26]\\d{6}', example_number='1900123456', possible_length=(10,)),
shared_cost=PhoneNumberDesc(national_number_pattern='13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', example_number='1300123456', possible_length=(6, 8, 10, 12)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_BD.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_BD = PhoneMetadata(id='BD', country_code=880, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}', possible_length=(6, 7, 8, 9, 10)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}', example_number='27111234', possible_length=(6, 7, 8, 9, 10)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:2\\d|[45])\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}', example_number='27111234', possible_length=(6, 7, 8, 9, 10)),
mobile=PhoneNumberDesc(national_number_pattern='(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}', example_number='1812345678', possible_length=(10,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[03]\\d{7}', example_number='8001234567', possible_length=(10,)),
voip=PhoneNumberDesc(national_number_pattern='96(?:0[469]|1[0-47]|3[389]|43|6[69]|7[78])\\d{6}', example_number='9604123456', possible_length=(10,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_CC.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_CC = PhoneMetadata(id='CC', country_code=61, international_prefix='001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
general_desc=PhoneNumberDesc(national_number_pattern='1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}', possible_length=(6, 7, 8, 9, 10, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}', example_number='891621234', possible_length=(9,), possible_length_local_only=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='180(?:0\\d{3}|2)\\d{3}', example_number='1800123456', possible_length=(7, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='190[0-26]\\d{6}', example_number='1900123456', possible_length=(10,)),
shared_cost=PhoneNumberDesc(national_number_pattern='13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', example_number='1300123456', possible_length=(6, 8, 10, 12)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_CX.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_CX = PhoneMetadata(id='CX', country_code=61, international_prefix='001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
general_desc=PhoneNumberDesc(national_number_pattern='1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}', possible_length=(6, 7, 8, 9, 10, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}', example_number='891641234', possible_length=(9,), possible_length_local_only=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='180(?:0\\d{3}|2)\\d{3}', example_number='1800123456', possible_length=(7, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='190[0-26]\\d{6}', example_number='1900123456', possible_length=(10,)),
shared_cost=PhoneNumberDesc(national_number_pattern='13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', example_number='1300123456', possible_length=(6, 8, 10, 12)),
Expand Down
3 changes: 1 addition & 2 deletions python/phonenumbers/data/region_GA.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
general_desc=PhoneNumberDesc(national_number_pattern='(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}', possible_length=(7, 8)),
fixed_line=PhoneNumberDesc(national_number_pattern='[01]1\\d{6}', example_number='01441234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}', example_number='06031234', possible_length=(7, 8)),
national_prefix='0',
national_prefix_for_parsing='0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})',
national_prefix_transform_rule='\\1',
number_format=[NumberFormat(pattern='(\\d)(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[2-7]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['0']),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[167]'], national_prefix_formatting_rule='0\\1')])
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['11|[67]'], national_prefix_formatting_rule='0\\1')])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_GY.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_GY = PhoneMetadata(id='GY', country_code=592, international_prefix='001',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[2-8]\\d{3}|9008)\\d{3}', possible_length=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|50[0-6]|77[1-57])\\d{4}', example_number='2201234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:510|6\\d\\d|7(?:[01]\\d|2[0-256]|3[0-2]|49))\\d{4}', example_number='6091234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:510|6\\d\\d|7(?:[013]\\d|2[0-25-8]|4[0-29]))\\d{4}', example_number='6091234', possible_length=(7,)),
toll_free=PhoneNumberDesc(national_number_pattern='(?:289|8(?:00|6[28]|88|99))\\d{4}', example_number='2891234', possible_length=(7,)),
premium_rate=PhoneNumberDesc(national_number_pattern='9008\\d{3}', example_number='9008123', possible_length=(7,)),
voip=PhoneNumberDesc(national_number_pattern='515\\d{4}', example_number='5151234', possible_length=(7,)),
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_NE.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
PHONE_METADATA_NE = PhoneMetadata(id='NE', country_code=227, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[027-9]\\d{7}', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}', example_number='20201234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:23|7[047]|[89]\\d)\\d{6}', example_number='93123456', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:23|7[0467]|[89]\\d)\\d{6}', example_number='93123456', possible_length=(8,)),
toll_free=PhoneNumberDesc(national_number_pattern='08\\d{6}', example_number='08123456', possible_length=(8,)),
premium_rate=PhoneNumberDesc(national_number_pattern='09\\d{6}', example_number='09123456', possible_length=(8,)),
number_format=[NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['08']),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[089]|2[013]|7[047]'])])
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[089]|2[013]|7[0467]'])])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_RE.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
toll_free=PhoneNumberDesc(national_number_pattern='80\\d{7}', example_number='801234567', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='89[1-37-9]\\d{6}', example_number='891123456', possible_length=(9,)),
shared_cost=PhoneNumberDesc(national_number_pattern='8(?:1[019]|2[0156]|84|90)\\d{6}', example_number='810123456', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}', example_number='939901234', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}', example_number='939901234', 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=['[2689]'], national_prefix_formatting_rule='0\\1')],
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_RO.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_RO = PhoneMetadata(id='RO', country_code=40, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}', possible_length=(6, 9)),
fixed_line=PhoneNumberDesc(national_number_pattern='[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d', example_number='211234567', possible_length=(6, 9)),
mobile=PhoneNumberDesc(national_number_pattern='7020\\d{5}|(?:6(?:[04]0|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}', example_number='712034567', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:630|702)0\\d{5}|(?:6(?:[04]0|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}', example_number='712034567', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='90[0136]\\d{6}', example_number='900123456', possible_length=(9,)),
shared_cost=PhoneNumberDesc(national_number_pattern='801\\d{6}', example_number='801123456', possible_length=(9,)),
Expand Down
Loading

0 comments on commit 91a8a68

Please sign in to comment.