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 Sep 29, 2023
1 parent 10ab246 commit bd5e083
Show file tree
Hide file tree
Showing 34 changed files with 258 additions and 235 deletions.
44 changes: 22 additions & 22 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,11 +1129,16 @@
'237659':{'en': 'Orange'},
'23766':{'en': 'NEXTTEL'},
'23767':{'en': 'MTN Cameroon'},
'23768':{'en': 'NEXTTEL'},
'237680':{'en': 'MTN Cameroon'},
'237681':{'en': 'MTN Cameroon'},
'237682':{'en': 'MTN Cameroon'},
'237683':{'en': 'MTN Cameroon'},
'237684':{'en': 'NEXTTEL'},
'237685':{'en': 'NEXTTEL'},
'237686':{'en': 'Orange'},
'237687':{'en': 'Orange'},
'237688':{'en': 'NEXTTEL'},
'237689':{'en': 'NEXTTEL'},
'23769':{'en': 'Orange'},
'23836':{'en': 'CVMOVEL'},
'23851':{'en': 'T+'},
Expand Down Expand Up @@ -3344,6 +3349,7 @@
'38971':{'en': 'T-Mobile'},
'38972':{'en': 'T-Mobile'},
'38973':{'en': 'A1'},
'389736':{'en': 'T-Mobile'},
'3897370':{'en': 'T-Mobile'},
'3897371':{'en': 'T-Mobile'},
'389742':{'en': 'T-Mobile'},
Expand Down Expand Up @@ -3376,8 +3382,11 @@
'3934':{'en': 'Vodafone'},
'3936':{'en': 'TIM'},
'39370':{'en': 'TIM'},
'39371':{'en': 'Vodafone'},
'39373':{'en': '3 Italia'},
'39377':{'en': 'Vodafone'},
'393780':{'en': 'spusu'},
'393784':{'en': 'Vodafone'},
'3938':{'en': 'WIND'},
'39383':{'en': 'Vodafone'},
'3939':{'en': '3 Italia'},
Expand Down Expand Up @@ -3460,9 +3469,14 @@
'41781':{'en': 'Salt'},
'41782':{'en': 'Salt'},
'41783':{'en': 'Salt'},
'417840':{'en': 'UPC Switzerland'},
'417841':{'en': 'UPC Switzerland'},
'417842':{'en': 'UPC Switzerland'},
'417840':{'en': 'Sunrise'},
'417841':{'en': 'Sunrise'},
'417842':{'en': 'Sunrise'},
'417844':{'en': 'spusu'},
'4178460':{'en': 'Tismi'},
'4178461':{'en': 'Tismi'},
'4178462':{'en': 'Tismi'},
'4178463':{'en': 'Tismi'},
'4178470':{'en': 'MTEL'},
'4178471':{'en': 'MTEL'},
'4178472':{'en': 'MTEL'},
Expand Down Expand Up @@ -3737,6 +3751,8 @@
'423652':{'en': 'Cubic'},
'423653':{'en': 'Cubic'},
'423654':{'en': 'Cubic'},
'423656':{'en': 'Cubic'},
'423659':{'en': 'Telecom Liechtenstein'},
'42366':{'en': 'Telecom Liechtenstein'},
'423661':{'en': 'Dimoco'},
'42373':{'en': 'Telecom Liechtenstein'},
Expand All @@ -3747,6 +3763,7 @@
'43650':{'en': 'tele.ring'},
'43660':{'en': 'Hutchison Drei Austria'},
'43664':{'en': 'A1 TA'},
'43670':{'en': 'spusu'},
'43676':{'en': 'T-Mobile AT'},
'436770':{'en': 'T-Mobile AT'},
'436771':{'en': 'T-Mobile AT'},
Expand Down Expand Up @@ -6956,7 +6973,7 @@
'491526':{'en': 'Vodafone'},
'491529':{'en': 'Vodafone/Truphone'},
'4915555':{'en': 'Tismi BV'},
'4915566':{'en': 'Drillisch Online'},
'491556':{'en': '1&1 Mobilfunk'},
'4915630':{'en': 'Multiconnect'},
'4915678':{'en': 'Argon Networks'},
'491570':{'en': 'Eplus/Telogic'},
Expand Down Expand Up @@ -10002,21 +10019,4 @@
'553199615':{'en': 'Telemig Celular'},
'553199616':{'en': 'Telemig Celular'},
'553199617':{'en': 'Telemig Celular'},
'553199618':{'en': 'Telemig Celular'},
'553199619':{'en': 'Telemig Celular'},
'553199621':{'en': 'Telemig Celular'},
'553199622':{'en': 'Telemig Celular'},
'553199624':{'en': 'Telemig Celular'},
'553199625':{'en': 'Telemig Celular'},
'553199626':{'en': 'Telemig Celular'},
'553199627':{'en': 'Telemig Celular'},
'553199628':{'en': 'Telemig Celular'},
'553199629':{'en': 'Telemig Celular'},
'553199631':{'en': 'Telemig Celular'},
'553199632':{'en': 'Telemig Celular'},
'553199633':{'en': 'Telemig Celular'},
'553199634':{'en': 'Telemig Celular'},
'553199635':{'en': 'Telemig Celular'},
'553199636':{'en': 'Telemig Celular'},
'553199637':{'en': 'Telemig Celular'},
}
34 changes: 17 additions & 17 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@
# limitations under the License.

data = {
'553199618':{'en': 'Telemig Celular'},
'553199619':{'en': 'Telemig Celular'},
'553199621':{'en': 'Telemig Celular'},
'553199622':{'en': 'Telemig Celular'},
'553199624':{'en': 'Telemig Celular'},
'553199625':{'en': 'Telemig Celular'},
'553199626':{'en': 'Telemig Celular'},
'553199627':{'en': 'Telemig Celular'},
'553199628':{'en': 'Telemig Celular'},
'553199629':{'en': 'Telemig Celular'},
'553199631':{'en': 'Telemig Celular'},
'553199632':{'en': 'Telemig Celular'},
'553199633':{'en': 'Telemig Celular'},
'553199634':{'en': 'Telemig Celular'},
'553199635':{'en': 'Telemig Celular'},
'553199636':{'en': 'Telemig Celular'},
'553199637':{'en': 'Telemig Celular'},
'553199638':{'en': 'Telemig Celular'},
'553199639':{'en': 'Telemig Celular'},
'553199641':{'en': 'Telemig Celular'},
Expand Down Expand Up @@ -10002,21 +10019,4 @@
'5699976':{'en': 'Claro'},
'5699977':{'en': 'Claro'},
'5699978':{'en': 'Claro'},
'5699979':{'en': 'Claro'},
'569998':{'en': 'Claro'},
'569999':{'en': 'Entel'},
'5699990':{'en': 'Tesacom'},
'573002':{'en': 'Tigo'},
'573003':{'en': 'Tigo'},
'573004':{'en': 'Tigo'},
'573005':{'en': 'Tigo'},
'573006':{'en': 'Tigo'},
'573007':{'en': 'Tigo'},
'573008':{'en': 'Tigo'},
'573009':{'en': 'Tigo'},
'573012':{'en': 'Tigo'},
'573013':{'en': 'Tigo'},
'573014':{'en': 'Tigo'},
'573015':{'en': 'Tigo'},
'573016':{'en': 'Tigo'},
}
33 changes: 32 additions & 1 deletion python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@
# limitations under the License.

data = {
'5699979':{'en': 'Claro'},
'569998':{'en': 'Claro'},
'569999':{'en': 'Entel'},
'5699990':{'en': 'Tesacom'},
'573002':{'en': 'Tigo'},
'573003':{'en': 'Tigo'},
'573004':{'en': 'Tigo'},
'573005':{'en': 'Tigo'},
'573006':{'en': 'Tigo'},
'573007':{'en': 'Tigo'},
'573008':{'en': 'Tigo'},
'573009':{'en': 'Tigo'},
'573012':{'en': 'Tigo'},
'573013':{'en': 'Tigo'},
'573014':{'en': 'Tigo'},
'573015':{'en': 'Tigo'},
'573016':{'en': 'Tigo'},
'573017':{'en': 'Tigo'},
'573022':{'en': 'Tigo'},
'573023':{'en': 'Tigo'},
Expand Down Expand Up @@ -249,9 +266,14 @@
'5733316':{'en': 'Libre Tecnologias'},
'57333170':{'en': 'Libre Tecnologias'},
'57333171':{'en': 'Libre Tecnologias'},
'573332':{'en': 'Movil Exito'},
'5733320':{'en': 'Tigo'},
'5733321':{'en': 'Tigo'},
'5733330':{'en': 'GoMobile'},
'5733332':{'en': 'EZTALK Mobile'},
'5733333':{'en': 'EZTALK Mobile'},
'5733334':{'en': 'EZTALK Mobile'},
'5733335':{'en': 'EZTALK Mobile'},
'5733340':{'en': 'Comunicaciones Dime'},
'5733341':{'en': 'Comunicaciones Dime'},
'5733342':{'en': 'Comunicaciones Dime'},
Expand Down Expand Up @@ -4340,6 +4362,11 @@
'8536502':{'en': '3'},
'8536503':{'en': '3'},
'8536504':{'en': '3'},
'8536505':{'en': 'CTM'},
'8536506':{'en': 'CTM'},
'8536507':{'en': 'CTM'},
'8536508':{'en': 'CTM'},
'8536509':{'en': 'CTM'},
'8536515':{'en': 'CTM'},
'8536516':{'en': 'CTM'},
'8536517':{'en': 'CTM'},
Expand Down Expand Up @@ -4858,7 +4885,8 @@
'9054287':{'en': 'KKTC Telsim'},
'9054288':{'en': 'KKTC Telsim'},
'9055':{'en': 'Turk Telekom'},
'9056':{'en': 'Turkcell'},
'905610':{'en': 'Selam Mobile'},
'905616':{'en': 'Turkcell'},
'91600':{'en': 'Reliance Jio'},
'91602':{'en': 'BSNL MOBILE'},
'91603':{'en': 'BSNL MOBILE'},
Expand Down Expand Up @@ -8275,6 +8303,7 @@
'966571':{'en': 'Virgin'},
'966572':{'en': 'Virgin'},
'966573':{'en': 'Virgin'},
'966574':{'en': 'Red Bull Mobile'},
'966575':{'en': 'Red Bull Mobile'},
'966576':{'en': 'Lebara'},
'966577':{'en': 'Lebara'},
Expand Down Expand Up @@ -8333,6 +8362,8 @@
'97254':{'en': 'Orange'},
'972550':{'en': 'Beezz'},
'972552':{'en': '019mobile'},
'9725520':{'en': 'BITIT'},
'9725521':{'en': 'BITIT'},
'9725522':{'en': 'Home Cellular'},
'9725523':{'en': 'Home Cellular'},
'9725530':{'en': '019mobile'},
Expand Down
7 changes: 4 additions & 3 deletions python/phonenumbers/data/region_881.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

PHONE_METADATA_881 = PhoneMetadata(id='001', country_code=881, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[0-36-9]\\d{8}', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='[0-36-9]\\d{8}', example_number='612345678', possible_length=(9,)),
number_format=[NumberFormat(pattern='(\\d)(\\d{3})(\\d{5})', format='\\1 \\2 \\3', leading_digits_pattern=['[0-36-9]'])])
general_desc=PhoneNumberDesc(national_number_pattern='6\\d{9}|[0-36-9]\\d{8}', possible_length=(9, 10)),
mobile=PhoneNumberDesc(national_number_pattern='6\\d{9}|[0-36-9]\\d{8}', example_number='612345678', possible_length=(9, 10)),
number_format=[NumberFormat(pattern='(\\d)(\\d{3})(\\d{5})', format='\\1 \\2 \\3', leading_digits_pattern=['[0-37-9]']),
NumberFormat(pattern='(\\d)(\\d{3})(\\d{5,6})', format='\\1 \\2 \\3', leading_digits_pattern=['6'])])
6 changes: 3 additions & 3 deletions python/phonenumbers/data/region_CO.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

PHONE_METADATA_CO = PhoneMetadata(id='CO', country_code=57, international_prefix='00(?:4(?:[14]4|56)|[579])',
general_desc=PhoneNumberDesc(national_number_pattern='(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}', possible_length=(10, 11), possible_length_local_only=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|60[124-8][2-9]\\d{6}', example_number='6012345678', possible_length=(10,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='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}', example_number='3211234567', possible_length=(10,)),
fixed_line=PhoneNumberDesc(national_number_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}', example_number='6012345678', possible_length=(10,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='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}', example_number='3211234567', possible_length=(10,)),
toll_free=PhoneNumberDesc(national_number_pattern='1800\\d{7}', example_number='18001234567', possible_length=(11,)),
premium_rate=PhoneNumberDesc(national_number_pattern='19(?:0[01]|4[78])\\d{7}', example_number='19001234567', possible_length=(11,)),
national_prefix='0',
national_prefix_for_parsing='0(4(?:[14]4|56)|[579])?',
national_prefix_for_parsing='0([3579]|4(?:[14]4|56))?',
number_format=[NumberFormat(pattern='(\\d{3})(\\d{7})', format='\\1 \\2', leading_digits_pattern=['6'], national_prefix_formatting_rule='(\\1)', domestic_carrier_code_formatting_rule='0$CC \\1'),
NumberFormat(pattern='(\\d{3})(\\d{7})', format='\\1 \\2', leading_digits_pattern=['3[0-357]|91'], domestic_carrier_code_formatting_rule='0$CC \\1'),
NumberFormat(pattern='(\\d)(\\d{3})(\\d{7})', format='\\1-\\2-\\3', leading_digits_pattern=['1'], national_prefix_formatting_rule='0\\1')],
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_IL.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_IL = PhoneMetadata(id='IL', country_code=972, international_prefix='0(?:0|1[2-9])',
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}', possible_length=(7, 8, 9, 10, 11, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}', example_number='21234567', possible_length=(8, 11, 12), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='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}', example_number='502345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='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}', example_number='502345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='1(?:255|80[019]\\d{3})\\d{3}', example_number='1800123456', possible_length=(7, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}', example_number='1919123456', possible_length=(8, 10)),
shared_cost=PhoneNumberDesc(national_number_pattern='1700\\d{6}', example_number='1700123456', possible_length=(10,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_LI.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_LI = PhoneMetadata(id='LI', country_code=423, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[68]\\d{8}|(?:[2378]\\d|90)\\d{5}', possible_length=(7, 9)),
fixed_line=PhoneNumberDesc(national_number_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}', example_number='2345678', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?: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}', example_number='660234567', possible_length=(7, 9)),
mobile=PhoneNumberDesc(national_number_pattern='(?: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}', example_number='660234567', possible_length=(7, 9)),
toll_free=PhoneNumberDesc(national_number_pattern='8002[28]\\d\\d|80(?:05\\d|9)\\d{4}', example_number='8002222', possible_length=(7, 9)),
premium_rate=PhoneNumberDesc(national_number_pattern='90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d', example_number='9002222', possible_length=(7,)),
uan=PhoneNumberDesc(national_number_pattern='870(?:28|87)\\d\\d', example_number='8702812', possible_length=(7,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_MK.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_MK = PhoneMetadata(id='MK', country_code=389, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[2-578]\\d{7}', possible_length=(8,), possible_length_local_only=(6, 7)),
fixed_line=PhoneNumberDesc(national_number_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}', example_number='22012345', possible_length=(8,), possible_length_local_only=(6, 7)),
mobile=PhoneNumberDesc(national_number_pattern='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}', example_number='72345678', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='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}', example_number='72345678', possible_length=(8,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{5}', example_number='80012345', possible_length=(8,)),
premium_rate=PhoneNumberDesc(national_number_pattern='5\\d{7}', example_number='50012345', possible_length=(8,)),
shared_cost=PhoneNumberDesc(national_number_pattern='8(?:0[1-9]|[1-9]\\d)\\d{5}', example_number='80123456', possible_length=(8,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_SA.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_SA = PhoneMetadata(id='SA', country_code=966, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='92\\d{7}|(?:[15]|8\\d)\\d{8}', possible_length=(9, 10), possible_length_local_only=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}', example_number='112345678', possible_length=(9,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='579[01]\\d{5}|5(?:[013-689]\\d|7[0-35-8])\\d{6}', example_number='512345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='579[01]\\d{5}|5(?:[013-689]\\d|7[0-8])\\d{6}', example_number='512345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{7}', example_number='8001234567', possible_length=(10,)),
premium_rate=PhoneNumberDesc(national_number_pattern='925\\d{6}', example_number='925012345', possible_length=(9,)),
shared_cost=PhoneNumberDesc(national_number_pattern='920\\d{6}', example_number='920012345', possible_length=(9,)),
Expand Down
6 changes: 3 additions & 3 deletions python/phonenumbers/data/region_TR.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_TR = PhoneMetadata(id='TR', country_code=90, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}', possible_length=(7, 10, 12, 13)),
fixed_line=PhoneNumberDesc(national_number_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}', example_number='2123456789', possible_length=(10,)),
mobile=PhoneNumberDesc(national_number_pattern='56161\\d{5}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}', example_number='5012345678', possible_length=(10,)),
mobile=PhoneNumberDesc(national_number_pattern='561(?:011|61\\d)\\d{4}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}', example_number='5012345678', possible_length=(10,)),
toll_free=PhoneNumberDesc(national_number_pattern='8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})', example_number='8001234567', possible_length=(10, 12, 13)),
premium_rate=PhoneNumberDesc(national_number_pattern='(?:8[89]8|900)\\d{7}', example_number='9001234567', possible_length=(10,)),
personal_number=PhoneNumberDesc(national_number_pattern='592(?:21[12]|461)\\d{4}', example_number='5922121234', possible_length=(10,)),
Expand All @@ -16,11 +16,11 @@
national_prefix_for_parsing='0',
number_format=[NumberFormat(pattern='(\\d{3})(\\d)(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['444'], national_prefix_optional_when_formatting=True),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['512|8[01589]|90'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['5(?:[0-59]|61)', '5(?:[0-59]|616)', '5(?:[0-59]|6161)'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['5(?:[0-59]|61)', '5(?:[0-59]|61[06])', '5(?:[0-59]|61[06]1)'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[24][1-8]|3[1-9]'], national_prefix_formatting_rule='(0\\1)', national_prefix_optional_when_formatting=True),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{6,7})', format='\\1 \\2 \\3', leading_digits_pattern=['80'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True)],
intl_number_format=[NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['512|8[01589]|90']),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['5(?:[0-59]|61)', '5(?:[0-59]|616)', '5(?:[0-59]|6161)']),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['5(?:[0-59]|61)', '5(?:[0-59]|61[06])', '5(?:[0-59]|61[06]1)']),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[24][1-8]|3[1-9]']),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{6,7})', format='\\1 \\2 \\3', leading_digits_pattern=['80'])],
mobile_number_portable_region=True)
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_UG.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_UG = PhoneMetadata(id='UG', country_code=256, international_prefix='00[057]',
general_desc=PhoneNumberDesc(national_number_pattern='800\\d{6}|(?:[29]0|[347]\\d)\\d{7}', possible_length=(9,), possible_length_local_only=(5, 6, 7)),
fixed_line=PhoneNumberDesc(national_number_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}', example_number='312345678', possible_length=(9,), possible_length_local_only=(5, 6, 7)),
mobile=PhoneNumberDesc(national_number_pattern='726[01]\\d{5}|7(?:[01578]\\d|20|36|4[0-4]|6[0-5]|9[89])\\d{6}', example_number='712345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='726[01]\\d{5}|7(?:[01578]\\d|20|36|4[0-4]|6[0-6]|9[89])\\d{6}', example_number='712345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='800[1-3]\\d{5}', example_number='800123456', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='90[1-3]\\d{6}', example_number='901123456', possible_length=(9,)),
national_prefix='0',
Expand Down
Loading

0 comments on commit bd5e083

Please sign in to comment.