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 Jul 30, 2024
1 parent 2515304 commit f645418
Show file tree
Hide file tree
Showing 19 changed files with 60 additions and 62 deletions.
2 changes: 1 addition & 1 deletion python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@
'237685':{'en': 'NEXTTEL'},
'237686':{'en': 'Orange'},
'237687':{'en': 'Orange'},
'237688':{'en': 'NEXTTEL'},
'237688':{'en': 'Orange'},
'237689':{'en': 'NEXTTEL'},
'23769':{'en': 'Orange'},
'23836':{'en': 'CVMOVEL'},
Expand Down
66 changes: 30 additions & 36 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,43 +458,23 @@
'59069135':{'en': 'Orange'},
'590694':{'en': 'Digicel'},
'590696':{'en': 'Digicel'},
'59170':{'en': 'Nuevatel'},
'591710':{'en': 'Entel'},
'591711':{'en': 'Entel'},
'591712':{'en': 'Entel'},
'591714':{'en': 'Entel'},
'591715':{'en': 'Entel'},
'591716':{'en': 'Entel'},
'591717':{'en': 'Entel'},
'591718':{'en': 'Entel'},
'591719':{'en': 'Entel'},
'59172':{'en': 'Entel'},
'591730':{'en': 'Entel'},
'591731':{'en': 'Entel'},
'591732':{'en': 'Entel'},
'591733':{'en': 'Entel'},
'5917342':{'en': 'Entel'},
'5917343':{'en': 'Entel'},
'5917344':{'en': 'Entel'},
'5917346':{'en': 'Entel'},
'5917347':{'en': 'Entel'},
'5917348':{'en': 'Entel'},
'5917349':{'en': 'Entel'},
'5917353':{'en': 'Entel'},
'591736':{'en': 'Entel'},
'5917370':{'en': 'Entel'},
'5917371':{'en': 'Entel'},
'5917372':{'en': 'Entel'},
'5917373':{'en': 'Entel'},
'5917374':{'en': 'Entel'},
'5917375':{'en': 'Entel'},
'5917377':{'en': 'Entel'},
'591738':{'en': 'Entel'},
'5916':{'en': 'Tigo'},
'5917':{'en': 'Tigo'},
'59174':{'en': 'Entel'},
'59175':{'en': 'Tigo'},
'59176':{'en': 'Tigo'},
'59177':{'en': 'Tigo'},
'59179':{'en': 'Nuevatel'},
'5917419':{'en': 'Nuevatel'},
'5917429':{'en': 'Nuevatel'},
'5917438':{'en': 'Nuevatel'},
'5917439':{'en': 'Nuevatel'},
'5917449':{'en': 'Nuevatel'},
'5917459':{'en': 'Nuevatel'},
'5917474':{'en': 'Nuevatel'},
'5917479':{'en': 'Nuevatel'},
'5917487':{'en': 'Nuevatel'},
'5917488':{'en': 'Nuevatel'},
'5917489':{'en': 'Nuevatel'},
'5917497':{'en': 'Nuevatel'},
'5917498':{'en': 'Nuevatel'},
'5917499':{'en': 'Nuevatel'},
'592510':{'en': 'Digicel Guyana'},
'592600':{'en': 'Digicel Guyana'},
'592601':{'en': 'Digicel Guyana'},
Expand Down Expand Up @@ -542,6 +522,7 @@
'592726':{'en': 'GTT'},
'592727':{'en': 'GTT'},
'592728':{'en': 'GTT'},
'592729':{'en': 'GTT'},
'59273':{'en': 'E-Networks'},
'59274':{'en': 'Digicel Guyana'},
'592740':{'en': 'E-Networks'},
Expand Down Expand Up @@ -1177,6 +1158,10 @@
'61487':{'en': 'Telstra'},
'61488':{'en': 'Telstra'},
'614888':{'en': 'My Number'},
'614890':{'en': 'Optus'},
'614891':{'en': 'Optus'},
'614892':{'en': 'Optus'},
'614893':{'en': 'Optus'},
'6148984':{'en': 'Victorian Rail Track'},
'6148985':{'en': 'MessageBird'},
'614899':{'en': 'Pivotel Satellite'},
Expand Down Expand Up @@ -1363,6 +1348,7 @@
'658094':{'en': 'M1'},
'658095':{'en': 'SingTel'},
'658096':{'en': 'Simba'},
'658098':{'en': 'Simba'},
'6581':{'en': 'StarHub'},
'65810':{'en': 'M1'},
'65812':{'en': 'SingTel'},
Expand Down Expand Up @@ -8703,6 +8689,14 @@
'99217':{'en': 'Babilon-M'},
'9922':{'en': 'O-Mobile'},
'99230':{'en': 'O-Mobile'},
'992330':{'en': 'ZET-MOBILE'},
'992333':{'en': 'ZET-MOBILE'},
'992334':{'en': 'ZET-MOBILE'},
'992335':{'en': 'ZET-MOBILE'},
'992336':{'en': 'ZET-MOBILE'},
'992337':{'en': 'ZET-MOBILE'},
'992338':{'en': 'ZET-MOBILE'},
'992339':{'en': 'ZET-MOBILE'},
'99240':{'en': 'ZET-MOBILE'},
'99241':{'en': 'Megafon'},
'992440':{'en': 'ZET-MOBILE'},
Expand Down
5 changes: 3 additions & 2 deletions python/phonenumbers/data/region_BO.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

PHONE_METADATA_BO = PhoneMetadata(id='BO', country_code=591, international_prefix='00(?:1\\d)?',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[2-467]\\d\\d|8001)\\d{5}', possible_length=(8, 9), possible_length_local_only=(7,)),
general_desc=PhoneNumberDesc(national_number_pattern='8001\\d{5}|(?:[2-467]\\d|50)\\d{6}', possible_length=(8, 9), possible_length_local_only=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}', example_number='22123456', possible_length=(8,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='[67]\\d{7}', example_number='71234567', possible_length=(8,)),
toll_free=PhoneNumberDesc(national_number_pattern='8001[07]\\d{4}', example_number='800171234', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='50\\d{6}', example_number='50123456', possible_length=(8,), possible_length_local_only=(7,)),
no_international_dialling=PhoneNumberDesc(national_number_pattern='8001[07]\\d{4}', possible_length=(9,)),
national_prefix='0',
national_prefix_for_parsing='0(1\\d)?',
number_format=[NumberFormat(pattern='(\\d)(\\d{7})', format='\\1 \\2', leading_digits_pattern=['[23]|4[46]'], domestic_carrier_code_formatting_rule='0$CC \\1'),
number_format=[NumberFormat(pattern='(\\d)(\\d{7})', format='\\1 \\2', leading_digits_pattern=['[235]|4[46]'], domestic_carrier_code_formatting_rule='0$CC \\1'),
NumberFormat(pattern='(\\d{8})', format='\\1', leading_digits_pattern=['[67]'], domestic_carrier_code_formatting_rule='0$CC \\1'),
NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['8'], domestic_carrier_code_formatting_rule='0$CC \\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(?:[0135]\\d|2[0-8]|4[0-24-9]))\\d{4}', example_number='6091234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='510\\d{4}|(?:6\\d|7[0-5])\\d{5}', 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
6 changes: 3 additions & 3 deletions python/phonenumbers/data/region_KR.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
general_desc=PhoneNumberDesc(national_number_pattern='00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}', possible_length=(5, 6, 8, 9, 10, 11, 12, 13, 14), possible_length_local_only=(3, 4, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}', example_number='22123456', possible_length=(5, 6, 8, 9, 10), possible_length_local_only=(3, 4, 7)),
mobile=PhoneNumberDesc(national_number_pattern='1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}', example_number='1020000000', possible_length=(9, 10)),
toll_free=PhoneNumberDesc(national_number_pattern='00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}', example_number='801234567', possible_length=(9, 11, 12, 13, 14)),
toll_free=PhoneNumberDesc(national_number_pattern='00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|[38]0)\\d{7}', example_number='801234567', possible_length=(9, 11, 12, 13, 14)),
premium_rate=PhoneNumberDesc(national_number_pattern='60[2-9]\\d{6}', example_number='602345678', possible_length=(9,)),
personal_number=PhoneNumberDesc(national_number_pattern='50\\d{8,9}', example_number='5012345678', possible_length=(10, 11)),
voip=PhoneNumberDesc(national_number_pattern='70\\d{8}', example_number='7012345678', possible_length=(10,)),
Expand All @@ -18,7 +18,7 @@
NumberFormat(pattern='(\\d{2})(\\d{3,4})', format='\\1-\\2', leading_digits_pattern=['(?:3[1-3]|[46][1-4]|5[1-5])1'], national_prefix_formatting_rule='0\\1', domestic_carrier_code_formatting_rule='0$CC-\\1'),
NumberFormat(pattern='(\\d{4})(\\d{4})', format='\\1-\\2', leading_digits_pattern=['1']),
NumberFormat(pattern='(\\d)(\\d{3,4})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['2'], national_prefix_formatting_rule='0\\1', domestic_carrier_code_formatting_rule='0$CC-\\1'),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['60|8'], national_prefix_formatting_rule='0\\1', domestic_carrier_code_formatting_rule='0$CC-\\1'),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['[36]0|8'], national_prefix_formatting_rule='0\\1', domestic_carrier_code_formatting_rule='0$CC-\\1'),
NumberFormat(pattern='(\\d{2})(\\d{3,4})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['[1346]|5[1-5]'], national_prefix_formatting_rule='0\\1', domestic_carrier_code_formatting_rule='0$CC-\\1'),
NumberFormat(pattern='(\\d{2})(\\d{4})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['[57]'], national_prefix_formatting_rule='0\\1', domestic_carrier_code_formatting_rule='0$CC-\\1'),
NumberFormat(pattern='(\\d{5})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['003', '0030']),
Expand All @@ -28,7 +28,7 @@
intl_number_format=[NumberFormat(pattern='(\\d{2})(\\d{3,4})', format='\\1-\\2', leading_digits_pattern=['(?:3[1-3]|[46][1-4]|5[1-5])1']),
NumberFormat(pattern='(\\d{4})(\\d{4})', format='\\1-\\2', leading_digits_pattern=['1']),
NumberFormat(pattern='(\\d)(\\d{3,4})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['2']),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['60|8']),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['[36]0|8']),
NumberFormat(pattern='(\\d{2})(\\d{3,4})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['[1346]|5[1-5]']),
NumberFormat(pattern='(\\d{2})(\\d{4})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['[57]']),
NumberFormat(pattern='(\\d{2})(\\d{5})(\\d{4})', format='\\1-\\2-\\3', leading_digits_pattern=['5'])],
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_LA.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
PHONE_METADATA_LA = PhoneMetadata(id='LA', country_code=856, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}', possible_length=(8, 9, 10), possible_length_local_only=(6,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2[13]|[35-7][14]|41|8[1468])\\d{6}', example_number='21212862', possible_length=(8,), possible_length_local_only=(6,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:20(?:[23579]\\d|88)|30(?:2\\d|4))\\d{6}', example_number='2023123456', possible_length=(9, 10)),
mobile=PhoneNumberDesc(national_number_pattern='208[78]\\d{6}|(?:20[23579]|30[24])\\d{7}', example_number='2023123456', possible_length=(10,)),
uan=PhoneNumberDesc(national_number_pattern='30[0135-9]\\d{6}', example_number='301234567', possible_length=(9,)),
national_prefix='0',
national_prefix_for_parsing='0',
number_format=[NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['2[13]|3[14]|[4-8]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{3})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['30[013-9]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{3})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['30[0135-9]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{3})(\\d{3})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[23]'], national_prefix_formatting_rule='0\\1')])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_MY.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_MY = PhoneMetadata(id='MY', country_code=60, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{8,9}|(?:3\\d|[4-9])\\d{7}', possible_length=(8, 9, 10), possible_length_local_only=(6, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}', example_number='323856789', possible_length=(8, 9), possible_length_local_only=(6, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='4270\\d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}', example_number='323856789', possible_length=(8, 9), possible_length_local_only=(6, 7)),
mobile=PhoneNumberDesc(national_number_pattern='1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-7]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}', example_number='123456789', possible_length=(9, 10)),
toll_free=PhoneNumberDesc(national_number_pattern='1[378]00\\d{6}', example_number='1300123456', possible_length=(10,)),
premium_rate=PhoneNumberDesc(national_number_pattern='1600\\d{6}', example_number='1600123456', possible_length=(10,)),
Expand Down
3 changes: 2 additions & 1 deletion python/phonenumbers/data/region_SC.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

PHONE_METADATA_SC = PhoneMetadata(id='SC', country_code=248, international_prefix='010|0[0-2]',
general_desc=PhoneNumberDesc(national_number_pattern='800\\d{4}|(?:[249]\\d|64)\\d{5}', possible_length=(7,)),
general_desc=PhoneNumberDesc(national_number_pattern='(?:[2489]\\d|64)\\d{5}', possible_length=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='4[2-46]\\d{5}', example_number='4217123', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='2[125-8]\\d{5}', example_number='2510123', possible_length=(7,)),
toll_free=PhoneNumberDesc(national_number_pattern='800[08]\\d{3}', example_number='8000000', possible_length=(7,)),
premium_rate=PhoneNumberDesc(national_number_pattern='85\\d{5}', example_number='8512345', possible_length=(7,)),
voip=PhoneNumberDesc(national_number_pattern='971\\d{4}|(?:64|95)\\d{5}', example_number='6412345', possible_length=(7,)),
preferred_international_prefix='00',
number_format=[NumberFormat(pattern='(\\d)(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['[246]|9[57]'])])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_SG.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-6]|95[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}', example_number='81234567', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='8(?:09[0-68]|95[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-4])|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,)),
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_TJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
PHONE_METADATA_TJ = PhoneMetadata(id='TJ', country_code=992, international_prefix='810',
general_desc=PhoneNumberDesc(national_number_pattern='[0-57-9]\\d{8}', possible_length=(9,), possible_length_local_only=(3, 5, 6, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}', example_number='372123456', possible_length=(9,), possible_length_local_only=(3, 5, 6, 7)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[01578]|8[078]|9\\d)\\d{7}', example_number='917123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[01578]|8[078]|9\\d)\\d{7}', example_number='917123456', possible_length=(9,)),
preferred_international_prefix='8~10',
number_format=[NumberFormat(pattern='(\\d{6})(\\d)(\\d{2})', format='\\1 \\2 \\3', leading_digits_pattern=['331', '3317']),
NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['44[02-479]|[34]7']),
NumberFormat(pattern='(\\d{4})(\\d)(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['3[1-5]']),
NumberFormat(pattern='(\\d{4})(\\d)(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['3(?:[1245]|3[12])']),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['[0-57-9]'])])
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_VI.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

PHONE_METADATA_VI = PhoneMetadata(id='VI', country_code=1, international_prefix='011',
general_desc=PhoneNumberDesc(national_number_pattern='[58]\\d{9}|(?:34|90)0\\d{7}', possible_length=(10,), possible_length_local_only=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='340(?:2(?:0\\d|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}', example_number='3406421234', possible_length=(10,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='340(?:2(?:0\\d|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}', example_number='3406421234', possible_length=(10,), possible_length_local_only=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}', example_number='3406421234', possible_length=(10,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}', example_number='3406421234', possible_length=(10,), possible_length_local_only=(7,)),
toll_free=PhoneNumberDesc(national_number_pattern='8(?:00|33|44|55|66|77|88)[2-9]\\d{6}', example_number='8002345678', possible_length=(10,)),
premium_rate=PhoneNumberDesc(national_number_pattern='900[2-9]\\d{6}', example_number='9002345678', possible_length=(10,)),
personal_number=PhoneNumberDesc(national_number_pattern='52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}', example_number='5002345678', possible_length=(10,)),
Expand Down
Loading

0 comments on commit f645418

Please sign in to comment.