Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream changes from Google for v8.13.28 #614

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion METADATA-VERSION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# It can be a commit, branch or tag of the https://github.com/google/libphonenumber project
#
# For more information, look at the phing tasks in build.xml
v8.13.27
v8.13.28
3 changes: 2 additions & 1 deletion src/carrier/data/en/1.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@
144159 => 'Digicel Bermuda',
14417 => 'Cellular One',
14418 => 'Cellular One',
14419 => 'Deltronics',
144190 => 'Paradise Mobile',
144192 => 'Deltronics',
1473402 => 'Affordable Island Communications',
147341 => 'Digicel Grenada',
147342 => 'Digicel Grenada',
Expand Down
6 changes: 1 addition & 5 deletions src/carrier/data/en/229.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@
*/

return array (
22940 => 'Celtiis',
22941 => 'Celtiis',
2294 => 'Celtiis',
22942 => 'MTN',
22943 => 'Celtiis',
22944 => 'Celtiis',
22945 => 'Celtiis',
22946 => 'MTN',
2295 => 'MTN',
22955 => 'Moov',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/231.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
return array (
231220 => 'Liberia Telecom',
231330 => 'West Africa Telecom',
23142 => 'Connect',
231555 => 'Lonestar Cell',
2316 => 'Lonestar Cell',
2317 => 'Orange',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/385.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
3859750 => 'Lancelot Telecom',
3859751 => 'Telefocus',
3859754 => 'Lancelot Telecom',
3859755 => 'BSG',
3859757 => 'Mobile One',
38597595 => 'YATECO',
38597596 => 'Altavox',
Expand Down
8 changes: 5 additions & 3 deletions src/carrier/data/en/420.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
42079260 => 'SIA Net Balt',
4207928 => 'Tesco Mobile CR',
4207929 => 'Tesco Mobile CR',
42079390 => 'T-Mobile',
4207939 => 'T-Mobile',
4207940 => 'O2',
4207941 => 'O2',
4207942 => 'O2',
Expand All @@ -193,7 +193,7 @@
4207978 => 'T-Mobile',
42079797 => 'T-Mobile',
42079799 => 'T-Mobile',
42079900 => 'MAXPROGRES',
4207990 => 'T-Mobile',
4207991 => 'T-Mobile',
42079920 => 'METRONET',
42079950 => 'TERMS',
Expand All @@ -204,6 +204,8 @@
42079955 => 'GoMobil',
42079956 => 'GoMobil',
42079957 => 'T-Mobile',
42079958 => 'GoMobil',
42079979 => 'miniTEL',
42079999 => 'T-Mobile',
4207998 => 'T-Mobile',
4207999 => 'T-Mobile',
);
1 change: 1 addition & 0 deletions src/carrier/data/en/64.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
64204 => 'Sure (Guernsey) New Zealand Limited',
64205 => 'Vodafone',
64206 => 'Voyager Internet Limted',
64208 => 'Vodafone',
6421 => 'Vodafone',
6422 => '2degrees',
64260 => '2degrees',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/65.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
658070 => 'SingTel',
658071 => 'SingTel',
65808 => 'Simba',
658082 => 'SingTel',
658083 => 'M1',
658084 => 'SingTel',
6581 => 'StarHub',
Expand Down
5 changes: 3 additions & 2 deletions src/carrier/data/en/675.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
67576 => 'bmobile',
67577 => 'bmobile',
67578 => 'bmobile',
67581 => 'DIGIVOIP',
67582 => 'Digicel',
67581 => 'Vodafone',
67582 => 'Vodafone',
67583 => 'Vodafone',
67588 => 'Digicel',
);
6 changes: 6 additions & 0 deletions src/carrier/data/en/852.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
852444 => 'HKT',
852445 => 'HKT',
852446 => 'Hutchison Telecom.',
852447 => 'China Mobile',
852448 => 'Hutchison Telecom.',
852460 => 'China Unicom',
8524607 => 'Multibyte',
8524608 => 'HKT',
Expand Down Expand Up @@ -281,6 +283,8 @@
852695 => 'China Mobile',
852697 => 'HKT',
852699 => 'China Mobile',
852701 => 'China Mobile',
852702 => 'Hutchison Telecom.',
8527071 => 'SmarTone',
8527072 => 'SmarTone',
8527073 => 'SmarTone',
Expand All @@ -293,6 +297,7 @@
8528480 => 'HKT',
8528481 => 'HKT',
8528482 => 'HKT',
8528483 => 'HKT',
8528485 => 'SmarTone',
8528486 => 'SmarTone',
8528487 => 'SmarTone',
Expand Down Expand Up @@ -338,6 +343,7 @@
852936 => '3',
852937 => '3',
852938 => 'SmarTone',
852939 => 'HKT',
852940 => 'HKT',
852941 => '3',
852942 => '3',
Expand Down
6 changes: 6 additions & 0 deletions src/carrier/data/zh/852.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
852444 => '香港移动通讯',
852445 => '香港移动通讯',
852446 => '和記電話有限公司',
852447 => '中国移动',
852448 => '和記電話有限公司',
852460 => '中国联通',
8524607 => '',
8524608 => '香港移动通讯',
Expand Down Expand Up @@ -245,6 +247,8 @@
852695 => '中国移动',
852697 => '香港移动通讯',
852699 => '中国移动',
852701 => '中国移动',
852702 => '和記電話有限公司',
8527071 => '数码通',
8527072 => '数码通',
8527073 => '数码通',
Expand All @@ -257,6 +261,7 @@
8528480 => '香港移动通讯',
8528481 => '香港移动通讯',
8528482 => '香港移动通讯',
8528483 => '香港移动通讯',
8528485 => '数码通',
8528486 => '数码通',
8528487 => '数码通',
Expand Down Expand Up @@ -296,6 +301,7 @@
852933 => '香港移动通讯',
852934 => '中国移动',
852938 => '数码通',
852939 => '香港移动通讯',
852940 => '香港移动通讯',
852943 => '数码通',
852944 => '数码通',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_AU.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?:(?: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}',
'NationalNumberPattern' => '(?:(?:(?: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}',
'ExampleNumber' => '212345678',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_BJ.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:4[0-6]|[56]\\d|9[013-9])\\d{6}',
'NationalNumberPattern' => '(?:4[0-7]|[56]\\d|9[013-9])\\d{6}',
'ExampleNumber' => '90011234',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_BM.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '441(?:[2378]\\d|5[0-39]|92)\\d{5}',
'NationalNumberPattern' => '441909\\d{4}|441(?:[2378]\\d|5[0-39]|92)\\d{5}',
'ExampleNumber' => '4413701234',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_FR.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '59[1-9]\\d{6}|(?:[1-3]\\d|4[1-9]|5[0-8])\\d{7}',
'NationalNumberPattern' => '(?:26[013-9]|59[1-35-9])\\d{6}|(?:[13]\\d|2[0-57-9]|4[1-9]|5[0-8])\\d{7}',
'ExampleNumber' => '123456789',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_GY.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:510|6\\d\\d|7(?:0\\d|1[0-8]|25|49))\\d{4}',
'NationalNumberPattern' => '(?:510|6\\d\\d|7(?:[01]\\d|2[156]|49))\\d{4}',
'ExampleNumber' => '6091234',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_HK.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?: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}',
'NationalNumberPattern' => '(?: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}',
'ExampleNumber' => '51234567',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_HR.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '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}',
'NationalNumberPattern' => '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}',
'ExampleNumber' => '921234567',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_IR.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?: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}',
'NationalNumberPattern' => '(?: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}',
'ExampleNumber' => '2123456789',
'PossibleLength' =>
array (
Expand Down
8 changes: 4 additions & 4 deletions src/data/PhoneNumberMetadata_IT.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?',
'NationalNumberPattern' => '0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?',
'PossibleLength' =>
array (
0 => 6,
Expand Down Expand Up @@ -48,7 +48,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '3[1-9]\\d{8}|3[2-9]\\d{7}',
'NationalNumberPattern' => '3[2-9]\\d{7,8}|(?:31|43)\\d{8}',
'ExampleNumber' => '3123456789',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -267,7 +267,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '1(?:44|[679])|[378]',
0 => '1(?:44|[679])|[378]|43',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down Expand Up @@ -391,7 +391,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '1(?:44|[679])|[378]',
0 => '1(?:44|[679])|[378]|43',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_KE.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
),
'tollFree' =>
array (
'NationalNumberPattern' => '800[2-8]\\d{5,6}',
'NationalNumberPattern' => '800[02-8]\\d{5,6}',
'ExampleNumber' => '800223456',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_KR.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
),
'uan' =>
array (
'NationalNumberPattern' => '1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[168]|88)|8(?:00|33|55|77|99))\\d{4}',
'NationalNumberPattern' => '1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[0168]|88)|8(?:00|33|55|77|99))\\d{4}',
'ExampleNumber' => '15441234',
'PossibleLength' =>
array (
Expand Down
8 changes: 4 additions & 4 deletions src/data/PhoneNumberMetadata_LR.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}',
'NationalNumberPattern' => '(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}',
'PossibleLength' =>
array (
0 => 7,
Expand All @@ -39,7 +39,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:(?:(?:22|33)0|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}',
'NationalNumberPattern' => '(?:(?:(?:22|33)0|555|(?:77|88)\\d)\\d|4(?:240|[67]))\\d{5}|[56]\\d{6}',
'ExampleNumber' => '770123456',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -156,7 +156,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[4-6]',
0 => '4[67]|[56]',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
Expand All @@ -180,7 +180,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[23578]',
0 => '[2-578]',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_MQ.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
),
'voip' =>
array (
'NationalNumberPattern' => '9(?:397[0-2]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}',
'NationalNumberPattern' => '9(?:397[0-3]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}',
'ExampleNumber' => '976612345',
'PossibleLength' =>
array (
Expand Down
Loading
Loading