From d62209410c05e93717b57580831db14be5d276a3 Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Tue, 30 Jul 2024 18:25:24 +0100 Subject: [PATCH] Generated files for metadata --- python/phonenumbers/carrierdata/data2.py | 1 + python/phonenumbers/data/region_CN.py | 4 ++-- python/phonenumbers/data/region_IL.py | 2 +- python/phonenumbers/shortdata/region_CN.py | 10 +++++----- python/phonenumbers/tzdata/data0.py | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/python/phonenumbers/carrierdata/data2.py b/python/phonenumbers/carrierdata/data2.py index 9fee27fb..d87bb6f0 100644 --- a/python/phonenumbers/carrierdata/data2.py +++ b/python/phonenumbers/carrierdata/data2.py @@ -8556,6 +8556,7 @@ '9725551':{'en': 'Annatel'}, '9725552':{'en': 'Annatel'}, '9725555':{'en': 'Rami Levy'}, + '9725557':{'en': 'Rami Levy'}, '972556':{'en': 'Rami Levy'}, '9725570':{'en': 'Cellact'}, '9725571':{'en': 'Cellact'}, diff --git a/python/phonenumbers/data/region_CN.py b/python/phonenumbers/data/region_CN.py index 13f5e5fc..de5ecbd3 100644 --- a/python/phonenumbers/data/region_CN.py +++ b/python/phonenumbers/data/region_CN.py @@ -12,8 +12,8 @@ preferred_international_prefix='00', national_prefix='0', national_prefix_for_parsing='(1(?:[12]\\d|79)\\d\\d)|0', - number_format=[NumberFormat(pattern='(\\d{5,6})', format='\\1', leading_digits_pattern=['1(?:00|2[13])|95', '1(?:00|2(?:11|39))|95', '1(?:00|2(?:110|395))|95']), - NumberFormat(pattern='(\\d{5,6})', format='\\1', leading_digits_pattern=['10|96']), + number_format=[NumberFormat(pattern='(\\d{5,6})', format='\\1', leading_digits_pattern=['1(?:00|2[13])|9[56]', '1(?:00|2(?:1|39))|9[56]', '1(?:00|2(?:1|395))|9[56]']), + NumberFormat(pattern='(\\d{5,6})', format='\\1', leading_digits_pattern=['10']), NumberFormat(pattern='(\\d{2})(\\d{5,6})', format='\\1 \\2', leading_digits_pattern=['(?:10|2[0-57-9])[19]', '(?:10|2[0-57-9])(?:10|9[56])', '10(?:10|9[56])|2[0-57-9](?:100|9[56])'], national_prefix_formatting_rule='0\\1', domestic_carrier_code_formatting_rule='$CC \\1'), NumberFormat(pattern='(\\d{3})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['[1-9]', '1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])', '1(?:0(?:[0-8]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])|6)|[3-9]']), NumberFormat(pattern='(\\d{4})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['16[08]']), diff --git a/python/phonenumbers/data/region_IL.py b/python/phonenumbers/data/region_IL.py index 163f2e3c..9d407302 100644 --- a/python/phonenumbers/data/region_IL.py +++ b/python/phonenumbers/data/region_IL.py @@ -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\\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,)), + mobile=PhoneNumberDesc(national_number_pattern='55(?:410|57[0-289])\\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,)), diff --git a/python/phonenumbers/shortdata/region_CN.py b/python/phonenumbers/shortdata/region_CN.py index d9aae555..f7283207 100644 --- a/python/phonenumbers/shortdata/region_CN.py +++ b/python/phonenumbers/shortdata/region_CN.py @@ -2,10 +2,10 @@ from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CN = PhoneMetadata(id='CN', country_code=None, international_prefix=None, - general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d\\d(?:\\d{2,3})?', possible_length=(3, 5, 6)), - toll_free=PhoneNumberDesc(national_number_pattern='1(?:1[09]|2(?:[02]|[13]\\d\\d))', example_number='110', possible_length=(3, 5)), + general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d{2,5}', possible_length=(3, 4, 5, 6)), + toll_free=PhoneNumberDesc(national_number_pattern='1(?:1[09]|2(?:[02]|1\\d\\d|395))', example_number='110', possible_length=(3, 5)), emergency=PhoneNumberDesc(national_number_pattern='1(?:1[09]|20)', example_number='110', possible_length=(3,)), - short_code=PhoneNumberDesc(national_number_pattern='1(?:00\\d\\d|1[029]|2(?:[02]|110|395))|95\\d{3,4}', example_number='110', possible_length=(3, 5, 6)), - standard_rate=PhoneNumberDesc(national_number_pattern='1(?:00\\d\\d|12)|95\\d{3,4}', example_number='112', possible_length=(3, 5, 6)), - sms_services=PhoneNumberDesc(national_number_pattern='121\\d\\d', example_number='12100', possible_length=(5,)), + short_code=PhoneNumberDesc(national_number_pattern='1(?:00|1[0249]|2395|6[08])|9[56]\\d{3,4}|12[023]|1(?:0(?:[0-26]\\d|8)|21\\d)\\d', example_number='100', possible_length=(3, 4, 5, 6)), + standard_rate=PhoneNumberDesc(national_number_pattern='1(?:0(?:[0-26]\\d|8)\\d|1[24]|23|6[08])|9[56]\\d{3,4}|100', example_number='100', possible_length=(3, 4, 5, 6)), + sms_services=PhoneNumberDesc(national_number_pattern='12110', example_number='12110', possible_length=(5,)), short_data=True) diff --git a/python/phonenumbers/tzdata/data0.py b/python/phonenumbers/tzdata/data0.py index 07f5f07e..6aa074a2 100644 --- a/python/phonenumbers/tzdata/data0.py +++ b/python/phonenumbers/tzdata/data0.py @@ -2005,7 +2005,7 @@ '1919':('America/New_York',), '1920':('America/Chicago',), '1925':('America/Los_Angeles',), - '1928':('America/Denver', 'America/Phoenix'), + '1928':('America/Phoenix',), '1929':('America/New_York',), '1930':('America/New_York',), '1931':('America/Chicago',),