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 23, 2023
1 parent c08b169 commit 44b61d7
Show file tree
Hide file tree
Showing 37 changed files with 247 additions and 222 deletions.
34 changes: 17 additions & 17 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,13 +938,13 @@
'22797':{'en': 'Airtel'},
'22798':{'en': 'Airtel'},
'22799':{'en': 'Airtel'},
'22870':{'en': 'TOGOCEL'},
'22871':{'en': 'TOGOCEL'},
'22870':{'en': 'Togo Telecom'},
'22871':{'en': 'Togo Telecom'},
'22879':{'en': 'Moov'},
'22890':{'en': 'TOGOCEL'},
'22891':{'en': 'TOGOCEL'},
'22892':{'en': 'TOGOCEL'},
'22893':{'en': 'TOGOCEL'},
'22890':{'en': 'Togo Telecom'},
'22891':{'en': 'Togo Telecom'},
'22892':{'en': 'Togo Telecom'},
'22893':{'en': 'Togo Telecom'},
'22896':{'en': 'Moov'},
'22897':{'en': 'TOGOCEL'},
'22898':{'en': 'Moov'},
Expand Down Expand Up @@ -3312,6 +3312,7 @@
'3859751':{'en': 'Telefocus'},
'3859754':{'en': 'Lancelot Telecom'},
'3859757':{'en': 'Mobile One'},
'38597595':{'en': 'YATECO'},
'38597596':{'en': 'Altavox'},
'38597597':{'en': 'INNOVAC'},
'385976':{'en': 'Hrvatski Telekom'},
Expand Down Expand Up @@ -3392,6 +3393,7 @@
'3938':{'en': 'WIND'},
'39383':{'en': 'Vodafone'},
'3939':{'en': '3 Italia'},
'406':{'en': 'Vodafone'},
'407000':{'en': 'Enigma-System'},
'407013':{'en': 'Lycamobile'},
'407014':{'en': 'Lycamobile'},
Expand Down Expand Up @@ -4447,15 +4449,16 @@
'45227':{'en': 'telenor'},
'45228':{'en': 'telenor'},
'45229':{'en': 'telenor'},
'45231':{'en': 'tdc'},
'45232':{'en': 'tdc'},
'45233':{'en': 'tdc'},
'45234':{'en': 'tdc'},
'45235':{'en': 'tdc'},
'45236':{'en': 'tdc'},
'45231':{'en': 'Nuuday'},
'45232':{'en': 'Nuuday'},
'45233':{'en': 'Nuuday'},
'45234':{'en': 'Nuuday'},
'45235':{'en': 'Nuuday'},
'4523561':{'en': 'telenor'},
'45236':{'en': 'Nuuday'},
'45237':{'en': 'tdc'},
'45238':{'en': 'tdc'},
'45239':{'en': 'tdc'},
'45238':{'en': 'Nuuday'},
'45239':{'en': 'Nuuday'},
'452395':{'en': 'telia'},
'45241':{'en': 'tdc'},
'45242':{'en': 'tdc'},
Expand Down Expand Up @@ -10016,7 +10019,4 @@
'553199608':{'en': 'Telemig Celular'},
'553199609':{'en': 'Telemig Celular'},
'553199611':{'en': 'Telemig Celular'},
'553199612':{'en': 'Telemig Celular'},
'553199613':{'en': 'Telemig Celular'},
'553199614':{'en': 'Telemig Celular'},
}
6 changes: 3 additions & 3 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# limitations under the License.

data = {
'553199612':{'en': 'Telemig Celular'},
'553199613':{'en': 'Telemig Celular'},
'553199614':{'en': 'Telemig Celular'},
'553199615':{'en': 'Telemig Celular'},
'553199616':{'en': 'Telemig Celular'},
'553199617':{'en': 'Telemig Celular'},
Expand Down Expand Up @@ -10016,7 +10019,4 @@
'5699970':{'en': 'Movistar'},
'5699971':{'en': 'Movistar'},
'5699972':{'en': 'Movistar'},
'5699973':{'en': 'Movistar'},
'5699974':{'en': 'Movistar'},
'5699975':{'en': 'Claro'},
}
23 changes: 21 additions & 2 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# limitations under the License.

data = {
'5699973':{'en': 'Movistar'},
'5699974':{'en': 'Movistar'},
'5699975':{'en': 'Claro'},
'5699976':{'en': 'Claro'},
'5699977':{'en': 'Claro'},
'5699978':{'en': 'Claro'},
Expand Down Expand Up @@ -3955,6 +3958,7 @@
'8524614':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'8524615':{'en': 'China Unicom', 'zh': u('\u4e2d\u56fd\u8054\u901a')},
'8524616':{'en': 'China Unicom', 'zh': u('\u4e2d\u56fd\u8054\u901a')},
'8524617':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'8524620':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'8524621':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'8524622':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
Expand Down Expand Up @@ -3990,6 +3994,8 @@
'8524678':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'8524679':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'852468':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'852469':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'8524699':{'en': 'South China Telecommunications', 'zh': u('\u4e2d\u570b\u5357\u65b9\u96fb\u4fe1(\u9999\u6e2f)\u6709\u9650\u516c\u53f8')},
'852510':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8'), 'zh_Hant': u('\u4e2d\u570b\u79fb\u52d5')},
'852511':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': u('\u65b0\u79fb\u52d5\u901a\u8a0a')},
'852512':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8'), 'zh_Hant': u('\u4e2d\u570b\u79fb\u52d5')},
Expand Down Expand Up @@ -4110,6 +4116,7 @@
'852592':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': u('\u9999\u6e2f\u79fb\u52d5\u901a\u8a0a')},
'852593':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8'), 'zh_Hant': u('\u4e2d\u570b\u79fb\u52d5')},
'852594':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': u('\u9999\u6e2f\u79fb\u52d5\u901a\u8a0a')},
'852595':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'852596':{'en': '3', 'zh': '3', 'zh_Hant': '3'},
'852597':{'en': '3', 'zh': '3', 'zh_Hant': '3'},
'852598':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8'), 'zh_Hant': u('\u4e2d\u570b\u79fb\u52d5')},
Expand Down Expand Up @@ -4207,7 +4214,12 @@
'852697':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': u('\u9999\u6e2f\u79fb\u52d5\u901a\u8a0a')},
'852699':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8'), 'zh_Hant': u('\u4e2d\u570b\u79fb\u52d5')},
'85270':{'zh_Hant': u('\u6578\u78bc\u901a')},
'852707':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8527071':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8527072':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8527073':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8527074':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8527075':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8527076':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'852708':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'852840':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'8528480':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': 'Handy'},
Expand Down Expand Up @@ -4688,7 +4700,7 @@
'86195':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'86196':{'en': 'China Unicom', 'zh': u('\u4e2d\u56fd\u8054\u901a')},
'86197':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'86198':{'en': 'China Telecom', 'zh': u('\u4e2d\u56fd\u7535\u4fe1'), 'zh_Hant': u('\u4e2d\u570b\u96fb\u4fe1')},
'86198':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8'), 'zh_Hant': u('\u4e2d\u570b\u96fb\u4fe1')},
'86199':{'en': 'China Telecom', 'zh': u('\u4e2d\u56fd\u7535\u4fe1'), 'zh_Hant': u('\u4e2d\u570b\u96fb\u4fe1')},
'88011':{'en': 'Citycell'},
'88013':{'en': 'Grameenphone'},
Expand Down Expand Up @@ -8176,6 +8188,7 @@
'9234':{'en': 'Telenor'},
'9235':{'en': 'Special Communications Organization'},
'9236':{'en': 'Instaphone'},
'9237':{'en': 'Zong'},
'9370':{'en': 'AWCC', 'fa': u('\u0627\u0641\u063a\u0627\u0646 \u0628\u06cc \u0633\u06cc\u0645')},
'9371':{'en': 'AWCC', 'fa': u('\u0627\u0641\u063a\u0627\u0646 \u0628\u06cc \u0633\u06cc\u0645')},
'9372':{'en': 'Roshan', 'fa': u('\u0631\u0648\u0634\u0646')},
Expand Down Expand Up @@ -8552,6 +8565,12 @@
'99230':{'en': 'O-Mobile'},
'99240':{'en': 'ZET-MOBILE'},
'99241':{'en': 'Megafon'},
'992440':{'en': 'ZET-MOBILE'},
'992442':{'en': 'ZET-MOBILE'},
'992443':{'en': 'ZET-MOBILE'},
'992444':{'en': 'ZET-MOBILE'},
'992447':{'en': 'ZET-MOBILE'},
'992449':{'en': 'ZET-MOBILE'},
'99250':{'en': 'Tcell'},
'99255':{'en': 'Megafon'},
'99270':{'en': 'Tcell'},
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_EH.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
general_desc=PhoneNumberDesc(national_number_pattern='[5-8]\\d{8}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='528[89]\\d{5}', example_number='528812345', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}', example_number='650123456', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80\\d{7}', example_number='801234567', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[0-7]\\d{6}', example_number='801234567', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='89\\d{7}', example_number='891234567', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='592(?:4[0-2]|93)\\d{4}', example_number='592401234', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}', example_number='592401234', possible_length=(9,)),
national_prefix='0',
national_prefix_for_parsing='0',
leading_digits='528[89]')
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_HK.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

PHONE_METADATA_HK = PhoneMetadata(id='HK', country_code=852, international_prefix='00(?:30|5[09]|[126-9]?)',
general_desc=PhoneNumberDesc(national_number_pattern='8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}', possible_length=(5, 6, 7, 8, 9, 11)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:[45][0-8]|6[01]|9\\d))|58(?:0[1-9]|1[2-9]))\\d{4}', example_number='21234567', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4(?:44[5-9]|6(?:1[0-6]|4[0-57-9]|6[0-4]))|573[0-6]|6(?:26[013-8]|66[0-3])|70(?:7[1-5]|8[0-4])|848[0-25-9]|9(?:29[013-9]|59[0-4]|899))\\d{4}|(?:4(?:4[015]|6[023578])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}', example_number='51234567', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[59]\\d|6[01]))|58(?:0[1-9]|1[2-9]))\\d{4}', example_number='21234567', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4(?:44[5-9]|6(?:1[0-7]|4[0-57-9]|6[0-4]))|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-6]|8[0-4])|848[0-25-9]|9(?:29[013-9]|59[0-4]|899))\\d{4}|(?:4(?:4[015]|6[02357-9])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}', example_number='51234567', possible_length=(8,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='900(?:[0-24-9]\\d{7}|3\\d{1,4})', example_number='90012345678', possible_length=(5, 6, 7, 8, 11)),
personal_number=PhoneNumberDesc(national_number_pattern='8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}', example_number='81123456', possible_length=(8,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_HR.py
Original file line number Diff line number Diff line change
Expand Up @@ -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|77|9[67])))\\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|77|9[5-7])))\\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,)),
Expand Down
11 changes: 5 additions & 6 deletions python/phonenumbers/data/region_MA.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@

PHONE_METADATA_MA = PhoneMetadata(id='MA', country_code=212, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[5-8]\\d{8}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}', example_number='520123456', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}', example_number='520123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}', example_number='650123456', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80\\d{7}', example_number='801234567', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[0-7]\\d{6}', example_number='801234567', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='89\\d{7}', example_number='891234567', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='592(?:4[0-2]|93)\\d{4}', example_number='592401234', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}', example_number='592401234', possible_length=(9,)),
national_prefix='0',
national_prefix_for_parsing='0',
number_format=[NumberFormat(pattern='(\\d{5})(\\d{4})', format='\\1-\\2', leading_digits_pattern=['5(?:29|38)', '5(?:29[1289]|389)', '529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['5[45]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{4})(\\d{5})', format='\\1-\\2', leading_digits_pattern=['5(?:2[2-489]|3[5-9]|9)|892', '5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892'], 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[45]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{4})(\\d{5})', format='\\1-\\2', leading_digits_pattern=['5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)', '5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{7})', format='\\1-\\2', leading_digits_pattern=['8'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{3})(\\d{6})', format='\\1-\\2', leading_digits_pattern=['[5-7]'], national_prefix_formatting_rule='0\\1')],
main_country_for_code=True,
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|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,)),
mobile=PhoneNumberDesc(national_number_pattern='7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-48]\\d|6[01]|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_PK.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_PK = PhoneMetadata(id='PK', country_code=92, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}', possible_length=(8, 9, 10, 11, 12), possible_length_local_only=(5, 6, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}', example_number='2123456789', possible_length=(9, 10), possible_length_local_only=(5, 6, 7, 8)),
mobile=PhoneNumberDesc(national_number_pattern='3(?:[0-24]\\d|3[0-79]|55|64)\\d{7}', example_number='3012345678', possible_length=(10,)),
mobile=PhoneNumberDesc(national_number_pattern='3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}', example_number='3012345678', possible_length=(10,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{5}(?:\\d{3})?', example_number='80012345', possible_length=(8, 11)),
premium_rate=PhoneNumberDesc(national_number_pattern='900\\d{5}', example_number='90012345', possible_length=(8,)),
personal_number=PhoneNumberDesc(national_number_pattern='122\\d{6}', example_number='122044444', possible_length=(9,)),
Expand Down
6 changes: 3 additions & 3 deletions python/phonenumbers/data/region_RO.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_RO = PhoneMetadata(id='RO', country_code=40, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[2378]\\d|90)\\d{7}|[23]\\d{5}', possible_length=(6, 9)),
general_desc=PhoneNumberDesc(national_number_pattern='(?:[2378]\\d|62|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}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-29])\\d{6}', example_number='712034567', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='7020\\d{5}|(?:62\\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 All @@ -15,5 +15,5 @@
number_format=[NumberFormat(pattern='(\\d{3})(\\d{3})', format='\\1 \\2', leading_digits_pattern=['2[3-6]', '2[3-6]\\d9'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['219|31'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['[23]1'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['[237-9]'], national_prefix_formatting_rule='0\\1')],
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['[236-9]'], national_prefix_formatting_rule='0\\1')],
mobile_number_portable_region=True)
Loading

0 comments on commit 44b61d7

Please sign in to comment.