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 Jan 17, 2024
1 parent 0fa3e54 commit 0680494
Show file tree
Hide file tree
Showing 62 changed files with 12,067 additions and 12,624 deletions.
2 changes: 1 addition & 1 deletion python/phonenumbers/carrierdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2023 The Libphonenumber Authors
# Copyright (C) 2011-2024 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
22 changes: 11 additions & 11 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2023 The Libphonenumber Authors
# Copyright (C) 2011-2024 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -139,7 +139,8 @@
'144159':{'en': 'Digicel Bermuda'},
'14417':{'en': 'Cellular One'},
'14418':{'en': 'Cellular One'},
'14419':{'en': 'Deltronics'},
'144190':{'en': 'Paradise Mobile'},
'144192':{'en': 'Deltronics'},
'1473402':{'en': 'Affordable Island Communications'},
'147341':{'en': 'Digicel Grenada'},
'147342':{'en': 'Digicel Grenada'},
Expand Down Expand Up @@ -945,12 +946,8 @@
'22897':{'en': 'TOGOCEL'},
'22898':{'en': 'Moov'},
'22899':{'en': 'Moov'},
'22940':{'en': 'Celtiis'},
'22941':{'en': 'Celtiis'},
'2294':{'en': 'Celtiis'},
'22942':{'en': 'MTN'},
'22943':{'en': 'Celtiis'},
'22944':{'en': 'Celtiis'},
'22945':{'en': 'Celtiis'},
'22946':{'en': 'MTN'},
'2295':{'en': 'MTN'},
'22955':{'en': 'Moov'},
Expand Down Expand Up @@ -1021,6 +1018,7 @@
'230733':{'en': 'Cellplus'},
'231220':{'en': 'Liberia Telecom'},
'231330':{'en': 'West Africa Telecom'},
'23142':{'en': 'Connect'},
'231555':{'en': 'Lonestar Cell'},
'2316':{'en': 'Lonestar Cell'},
'2317':{'en': 'Orange'},
Expand Down Expand Up @@ -3308,6 +3306,7 @@
'3859750':{'en': 'Lancelot Telecom'},
'3859751':{'en': 'Telefocus'},
'3859754':{'en': 'Lancelot Telecom'},
'3859755':{'en': 'BSG'},
'3859757':{'en': 'Mobile One'},
'38597595':{'en': 'YATECO'},
'38597596':{'en': 'Altavox'},
Expand Down Expand Up @@ -3670,7 +3669,7 @@
'42079260':{'en': 'SIA Net Balt'},
'4207928':{'en': 'Tesco Mobile CR'},
'4207929':{'en': 'Tesco Mobile CR'},
'42079390':{'en': 'T-Mobile'},
'4207939':{'en': 'T-Mobile'},
'4207940':{'en': 'O2'},
'4207941':{'en': 'O2'},
'4207942':{'en': 'O2'},
Expand All @@ -3695,7 +3694,7 @@
'4207978':{'en': 'T-Mobile'},
'42079797':{'en': 'T-Mobile'},
'42079799':{'en': 'T-Mobile'},
'42079900':{'en': 'MAXPROGRES'},
'4207990':{'en': 'T-Mobile'},
'4207991':{'en': 'T-Mobile'},
'42079920':{'en': 'METRONET'},
'42079950':{'en': 'TERMS'},
Expand All @@ -3706,8 +3705,10 @@
'42079955':{'en': 'GoMobil'},
'42079956':{'en': 'GoMobil'},
'42079957':{'en': 'T-Mobile'},
'42079958':{'en': 'GoMobil'},
'42079979':{'en': 'miniTEL'},
'42079999':{'en': 'T-Mobile'},
'4207998':{'en': 'T-Mobile'},
'4207999':{'en': 'T-Mobile'},
'421901':{'en': 'T-Mobile (Slovak Telekom)'},
'421902':{'en': 'T-Mobile (Slovak Telekom)'},
'421903':{'en': 'T-Mobile (Slovak Telekom)'},
Expand Down Expand Up @@ -10018,5 +10019,4 @@
'553199606':{'en': 'Telemig Celular'},
'553199607':{'en': 'Telemig Celular'},
'553199608':{'en': 'Telemig Celular'},
'553199609':{'en': 'Telemig Celular'},
}
4 changes: 2 additions & 2 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2023 The Libphonenumber Authors
# Copyright (C) 2011-2024 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -19,6 +19,7 @@
# limitations under the License.

data = {
'553199609':{'en': 'Telemig Celular'},
'553199611':{'en': 'Telemig Celular'},
'553199612':{'en': 'Telemig Celular'},
'553199613':{'en': 'Telemig Celular'},
Expand Down Expand Up @@ -10018,5 +10019,4 @@
'5699968':{'en': 'Entel'},
'5699969':{'en': 'Entel'},
'5699970':{'en': 'Movistar'},
'5699971':{'en': 'Movistar'},
}
16 changes: 13 additions & 3 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from ..util import u

# Copyright (C) 2011-2023 The Libphonenumber Authors
# Copyright (C) 2011-2024 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -19,6 +19,7 @@
# limitations under the License.

data = {
'5699971':{'en': 'Movistar'},
'5699972':{'en': 'Movistar'},
'5699973':{'en': 'Movistar'},
'5699974':{'en': 'Movistar'},
Expand Down Expand Up @@ -1178,6 +1179,7 @@
'64204':{'en': 'Sure (Guernsey) New Zealand Limited'},
'64205':{'en': 'Vodafone'},
'64206':{'en': 'Voyager Internet Limted'},
'64208':{'en': 'Vodafone'},
'6421':{'en': 'Vodafone'},
'6422':{'en': '2degrees'},
'64260':{'en': '2degrees'},
Expand Down Expand Up @@ -1247,6 +1249,7 @@
'658070':{'en': 'SingTel'},
'658071':{'en': 'SingTel'},
'65808':{'en': 'Simba'},
'658082':{'en': 'SingTel'},
'658083':{'en': 'M1'},
'658084':{'en': 'SingTel'},
'6581':{'en': 'StarHub'},
Expand Down Expand Up @@ -2293,8 +2296,9 @@
'67576':{'en': 'bmobile'},
'67577':{'en': 'bmobile'},
'67578':{'en': 'bmobile'},
'67581':{'en': 'DIGIVOIP'},
'67582':{'en': 'Digicel'},
'67581':{'en': 'Vodafone'},
'67582':{'en': 'Vodafone'},
'67583':{'en': 'Vodafone'},
'67588':{'en': 'Digicel'},
'676554':{'en': 'Toko Wireless'},
'676555':{'en': 'Toko Wireless'},
Expand Down Expand Up @@ -3950,6 +3954,8 @@
'852444':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'852445':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'852446':{'en': 'Hutchison Telecom.', 'zh': u('\u548c\u8a18\u96fb\u8a71\u6709\u9650\u516c\u53f8')},
'852447':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'852448':{'en': 'Hutchison Telecom.', 'zh': u('\u548c\u8a18\u96fb\u8a71\u6709\u9650\u516c\u53f8')},
'852460':{'en': 'China Unicom', 'zh': u('\u4e2d\u56fd\u8054\u901a'), 'zh_Hant': u('\u4e2d\u570b\u79fb\u52d5')},
'8524607':{'en': 'Multibyte', 'zh': 'Multibyte'},
'8524608':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
Expand Down Expand Up @@ -4218,6 +4224,8 @@
'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')},
'852701':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'852702':{'en': 'Hutchison Telecom.', 'zh': u('\u548c\u8a18\u96fb\u8a71\u6709\u9650\u516c\u53f8')},
'8527071':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8527072':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8527073':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
Expand All @@ -4230,6 +4238,7 @@
'8528480':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': 'Handy'},
'8528481':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': u('\u65b0\u79fb\u52d5\u901a\u8a0a')},
'8528482':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'8528483':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'8528485':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8528486':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
'8528487':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a')},
Expand Down Expand Up @@ -4276,6 +4285,7 @@
'852936':{'en': '3', 'zh': '3', 'zh_Hant': '3'},
'852937':{'en': '3', 'zh': '3', 'zh_Hant': '3'},
'852938':{'en': 'SmarTone', 'zh': u('\u6570\u7801\u901a'), 'zh_Hant': u('\u6578\u78bc\u901a')},
'852939':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'852940':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': u('\u9999\u6e2f\u79fb\u52d5\u901a\u8a0a')},
'852941':{'en': '3', 'zh': '3', 'zh_Hant': '3'},
'852942':{'en': '3', 'zh': '3', 'zh_Hant': '3'},
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Auto-generated file, do not edit by hand."""
# Copyright (C) 2010-2023 The Libphonenumber Authors
# Copyright (C) 2010-2024 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
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 @@ -3,7 +3,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])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|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]))|(?: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,)),
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-26-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,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_BJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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='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-6]|[56]\\d|9[013-9])\\d{6}', example_number='90011234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4[0-7]|[56]\\d|9[013-9])\\d{6}', example_number='90011234', possible_length=(8,)),
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]'])])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_BM.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_BM = PhoneMetadata(id='BM', country_code=1, international_prefix='011',
general_desc=PhoneNumberDesc(national_number_pattern='(?:441|[58]\\d\\d|900)\\d{7}', possible_length=(10,), possible_length_local_only=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}', example_number='4414123456', possible_length=(10,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='441(?:[2378]\\d|5[0-39]|92)\\d{5}', example_number='4413701234', possible_length=(10,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='441909\\d{4}|441(?:[2378]\\d|5[0-39]|92)\\d{5}', example_number='4413701234', 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='8002123456', possible_length=(10,)),
premium_rate=PhoneNumberDesc(national_number_pattern='900[2-9]\\d{6}', example_number='9002123456', 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
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_FR.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_FR = PhoneMetadata(id='FR', country_code=33, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[1-9]\\d{8}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='59[1-9]\\d{6}|(?:[1-3]\\d|4[1-9]|5[0-8])\\d{7}', example_number='123456789', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:26[013-9]|59[1-35-9])\\d{6}|(?:[13]\\d|2[0-57-9]|4[1-9]|5[0-8])\\d{7}', example_number='123456789', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7[3-9]\\d)\\d{6}', example_number='612345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[0-5]\\d{6}', example_number='801234567', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}', example_number='891123456', possible_length=(9,)),
Expand Down
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(?:0\\d|1[0-8]|25|49))\\d{4}', example_number='6091234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:510|6\\d\\d|7(?:[01]\\d|2[156]|49))\\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
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_HK.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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(?: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[0156]|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])|709|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}', example_number='51234567', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4(?:44[05-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-35-9]|9(?:29[013-9]|39[01]|59[0-4]|899))\\d{4}|(?:4(?:4[015-8]|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])|70[129]|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[5-7])))\\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|55|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
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_IR.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_IR = PhoneMetadata(id='IR', country_code=98, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}', possible_length=(4, 5, 6, 7, 10), possible_length_local_only=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|2(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}', example_number='2123456789', possible_length=(6, 7, 10), possible_length_local_only=(4, 5, 8)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|(?:12\\d|30[0-2])\\d|2(?:121|[2689]0\\d)|4(?:111|40\\d))\\d{4}', example_number='2123456789', possible_length=(6, 7, 10), possible_length_local_only=(4, 5, 8)),
mobile=PhoneNumberDesc(national_number_pattern='9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:[0-46]\\d\\d|5[15]0|8(?:[12]\\d|88)|9(?:0[0-3]|[19]\\d|21|69|77|8[7-9])))\\d{5}', example_number='9123456789', possible_length=(10,)),
uan=PhoneNumberDesc(national_number_pattern='96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])', example_number='9601', possible_length=(4, 5)),
no_international_dialling=PhoneNumberDesc(national_number_pattern='9(?:4440\\d{5}|6(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19]))', possible_length=(4, 5, 10)),
Expand Down
Loading

0 comments on commit 0680494

Please sign in to comment.