Skip to content

Commit

Permalink
Merge pull request #650 from giggsey/upstream-8.13.44
Browse files Browse the repository at this point in the history
Upstream metadata changes from Google for v8.13.44
  • Loading branch information
giggsey authored Sep 2, 2024
2 parents 1f36dcd + 902fbb6 commit 8ad9011
Show file tree
Hide file tree
Showing 20 changed files with 91 additions and 156 deletions.
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.43
v8.13.44
3 changes: 3 additions & 0 deletions src/carrier/data/en/220.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
return array (
2202 => 'Africell',
2203 => 'QCell',
22040 => 'Africell',
22041 => 'Africell',
22045 => 'Africell',
22050 => 'QCell',
22051 => 'QCell',
22052 => 'QCell',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/226.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
22601 => 'Onatel',
22602 => 'Onatel',
22603 => 'Onatel',
22604 => 'Orange',
22605 => 'Orange',
22606 => 'Orange',
22607 => 'Orange',
Expand Down
3 changes: 2 additions & 1 deletion src/carrier/data/en/32.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
*/

return array (
3245001 => 'Gateway Communications',
3245001 => 'GATEWAY COMMUNICATIONS S.A.',
324510 => 'DIGI Communications',
32455 => 'VOO',
32456 => 'Mobile Vikings/JIM Mobile',
32460 => 'Proximus',
Expand Down
1 change: 0 additions & 1 deletion src/carrier/data/en/40.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
4060 => 'Telekom',
4062 => 'Vodafone',
4063 => 'Digi Mobil',
4064 => 'Orange',
407000 => 'Enigma-System',
407013 => 'Lycamobile',
407014 => 'Lycamobile',
Expand Down
2 changes: 2 additions & 0 deletions src/carrier/data/en/65.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
658095 => 'SingTel',
658096 => 'Simba',
658098 => 'Simba',
658099 => 'SingTel',
6581 => 'StarHub',
65810 => 'M1',
65812 => 'SingTel',
Expand All @@ -78,6 +79,7 @@
658228 => 'SingTel',
65826 => 'SingTel',
65827 => 'M1',
658274 => 'Simba',
65828 => 'SingTel',
658282 => 'M1',
658288 => 'M1',
Expand Down
27 changes: 15 additions & 12 deletions src/carrier/data/en/673.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@
return array (
673228 => 'DSTCom',
673229 => 'DSTCom',
67371 => 'DSTCom',
67372 => 'DSTCom',
67373 => 'DSTCom',
67374 => 'Imagine',
67377 => 'DSTCom',
67381 => 'Progresif Cellular',
67382 => 'Progresif Cellular',
67383 => 'Progresif Cellular',
67386 => 'DSTCom',
67387 => 'DSTCom',
67388 => 'DSTCom',
67389 => 'DSTCom',
67371 => 'UNN',
67372 => 'UNN',
67373 => 'UNN',
67374 => 'UNN',
67376 => 'UNN',
67377 => 'UNN',
67379 => 'UNN',
67381 => 'UNN',
67382 => 'UNN',
67383 => 'UNN',
67384 => 'UNN',
67386 => 'UNN',
67387 => 'UNN',
67388 => 'UNN',
67389 => 'UNN',
);
6 changes: 1 addition & 5 deletions src/carrier/data/en/992.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@
*/

return array (
9920 => 'ZET-MOBILE',
99200 => 'Megafon',
99201 => 'Megafon',
99202 => 'Megafon',
99203 => 'ZET-MOBILE',
99204 => 'ZET-MOBILE',
99205 => 'ZET-MOBILE',
99207 => 'Megafon',
99208 => 'ZET-MOBILE',
99209 => 'ZET-MOBILE',
99210 => 'O-Mobile',
99211 => 'Tcell',
99217 => 'Babilon-M',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_BF.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:0[1-35-7]|5[0-8]|[67]\\d)\\d{6}',
'NationalNumberPattern' => '(?:0[1-7]|5[0-8]|[67]\\d)\\d{6}',
'ExampleNumber' => '70123456',
'PossibleLength' =>
array (
Expand Down
36 changes: 32 additions & 4 deletions src/data/PhoneNumberMetadata_CD.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[189]\\d{8}|[1-68]\\d{6}',
'NationalNumberPattern' => '(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}',
'PossibleLength' =>
array (
0 => 7,
1 => 9,
1 => 8,
2 => 9,
3 => 10,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'fixedLine' =>
array (
'NationalNumberPattern' => '12\\d{7}|[1-6]\\d{6}',
'NationalNumberPattern' => '(?:(?:12|573)\\d\\d|276)\\d{5}|[1-6]\\d{6}',
'ExampleNumber' => '1234567',
'PossibleLength' =>
array (
Expand All @@ -41,6 +43,8 @@
'ExampleNumber' => '991234567',
'PossibleLength' =>
array (
0 => 7,
1 => 9,
),
'PossibleLengthLocalOnly' =>
array (
Expand Down Expand Up @@ -169,6 +173,18 @@
'nationalPrefixOptionalWhenFormatting' => false,
),
2 =>
array (
'pattern' => '(\\d{2})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '2',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
3 =>
array (
'pattern' => '(\\d{2})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -180,7 +196,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
3 =>
4 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
Expand All @@ -192,6 +208,18 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
5 =>
array (
'pattern' => '(\\d{2})(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' =>
array (
0 => '5',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
),
'intlNumberFormat' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_GM.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:[23679]\\d|5[0-489])\\d{5}',
'NationalNumberPattern' => '(?:[23679]\\d|4[015]|5[0-489])\\d{5}',
'ExampleNumber' => '3012345',
'PossibleLength' =>
array (
Expand Down
68 changes: 21 additions & 47 deletions src/data/PhoneNumberMetadata_NG.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,35 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}',
'NationalNumberPattern' => '38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}',
'PossibleLength' =>
array (
0 => 7,
1 => 8,
2 => 10,
3 => 11,
4 => 12,
5 => 13,
6 => 14,
0 => 8,
1 => 10,
2 => 11,
3 => 12,
4 => 13,
5 => 14,
),
'PossibleLengthLocalOnly' =>
array (
0 => 5,
1 => 6,
0 => 6,
1 => 7,
),
),
'fixedLine' =>
array (
'NationalNumberPattern' => '20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])\\d{6}|(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}',
'ExampleNumber' => '18040123',
'NationalNumberPattern' => '(?:20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])|38)\\d{6}',
'ExampleNumber' => '2033123456',
'PossibleLength' =>
array (
0 => 7,
1 => 8,
2 => 10,
0 => 8,
1 => 10,
),
'PossibleLengthLocalOnly' =>
array (
0 => 5,
1 => 6,
0 => 6,
1 => 7,
),
),
'mobile' =>
Expand Down Expand Up @@ -170,42 +168,18 @@
'numberFormat' =>
array (
0 =>
array (
'pattern' => '(\\d{2})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '78',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
1 =>
array (
'pattern' => '(\\d)(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[12]|9(?:0[3-9]|[1-9])',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
2 =>
array (
'pattern' => '(\\d{2})(\\d{3})(\\d{2,3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[3-6]|7(?:0[0-689]|[1-79])|8[2-9]',
0 => '3',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
3 =>
1 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
Expand All @@ -217,7 +191,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
4 =>
2 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -229,7 +203,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
5 =>
3 =>
array (
'pattern' => '(\\d{4})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -241,7 +215,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
6 =>
4 =>
array (
'pattern' => '(\\d{3})(\\d{4})(\\d{4,5})',
'format' => '$1 $2 $3',
Expand All @@ -253,7 +227,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
7 =>
5 =>
array (
'pattern' => '(\\d{3})(\\d{5})(\\d{5,6})',
'format' => '$1 $2 $3',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_RO.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:630|702)0\\d{5}|(?:6(?:[04]0|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}',
'NationalNumberPattern' => '(?:630|702)0\\d{5}|(?:6(?:00|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}',
'ExampleNumber' => '712034567',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_SG.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '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}',
'NationalNumberPattern' => '8(?:09[0-689]|95[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}',
'ExampleNumber' => '81234567',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_SN.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '7(?:(?:[06-8]\\d|21|90)\\d|5(?:01|[19]0|25|[38]3|[4-7]\\d))\\d{5}',
'NationalNumberPattern' => '7(?:(?:[06-8]\\d|21|90)\\d|5(?:0[01]|[19]0|2[25]|[38]3|[4-7]\\d))\\d{5}',
'ExampleNumber' => '701234567',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_TJ.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?: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}',
'NationalNumberPattern' => '(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[017]|2[02]|[34]0|5[05]|7[01578]|8[078])\\d{7}',
'ExampleNumber' => '917123456',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_UY.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?:1(?:770|9(?:20|87))|(?:2\\d|4[2-7])\\d\\d)\\d{4}',
'NationalNumberPattern' => '(?:1(?:770|9(?:20|[89]7))|(?:2\\d|4[2-7])\\d\\d)\\d{4}',
'ExampleNumber' => '21231234',
'PossibleLength' =>
array (
Expand Down
Loading

0 comments on commit 8ad9011

Please sign in to comment.