Skip to content

Commit

Permalink
Merge pull request #660 from giggsey/upstream-8.13.49
Browse files Browse the repository at this point in the history
Upstream metadata changes from Google for v8.13.49
  • Loading branch information
giggsey authored Nov 4, 2024
2 parents 0965dd4 + 8c5f3ab commit 3f5414a
Show file tree
Hide file tree
Showing 16 changed files with 86 additions and 37 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.48
v8.13.49
1 change: 1 addition & 0 deletions src/carrier/data/en/372.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
3728285 => 'Tele 2',
3728286 => 'Tele 2',
3728287 => 'Tele 2',
372829 => 'Tele 2',
37283 => 'Tele 2',
37284 => 'Tele 2',
37284510 => 'Telia Eesti AS',
Expand Down
2 changes: 1 addition & 1 deletion src/carrier/data/en/596.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
59669689 => 'SFR/Rife',
5966969 => 'Digicel',
59669699 => 'Orange',
596697 => 'Digicel',
59669727 => 'Digicel',
];
2 changes: 1 addition & 1 deletion src/carrier/data/en/65.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,10 @@
658947 => 'Simba',
658948 => 'Simba',
658949 => 'M1',
65895 => 'Simba',
658950 => 'M1',
658951 => 'M1',
658952 => 'M1',
658953 => 'Simba',
65896 => 'Simba',
659001 => 'StarHub',
659002 => 'StarHub',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/992.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
99210 => 'O-Mobile',
99211 => 'Tcell',
99217 => 'Babilon-M',
99218 => 'ZET-MOBILE',
9922 => 'O-Mobile',
99230 => 'O-Mobile',
992330 => 'ZET-MOBILE',
Expand Down
33 changes: 30 additions & 3 deletions src/data/PhoneNumberMetadata_CO.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,26 @@

return [
'generalDesc' => [
'NationalNumberPattern' => '60\\d{8}|(?:1\\d|[39])\\d{9}',
'NationalNumberPattern' => '(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}',
'PossibleLength' => [
8,
10,
11,
],
'PossibleLengthLocalOnly' => [
4,
7,
],
],
'fixedLine' => [
'NationalNumberPattern' => '601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|60(?:[124-7][2-9]|8[1-9])\\d{6}',
'NationalNumberPattern' => '601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|(?:46|60(?:[124-7][2-9]|8[1-9]))\\d{6}',
'ExampleNumber' => '6012345678',
'PossibleLength' => [
8,
10,
],
'PossibleLengthLocalOnly' => [
4,
7,
],
],
Expand All @@ -46,7 +50,10 @@
'premiumRate' => [
'NationalNumberPattern' => '(?:19(?:0[01]|4[78])|901)\\d{7}',
'ExampleNumber' => '19001234567',
'PossibleLength' => [],
'PossibleLength' => [
10,
11,
],
'PossibleLengthLocalOnly' => [],
],
'sharedCost' => [
Expand Down Expand Up @@ -98,6 +105,16 @@
'nationalPrefixForParsing' => '0([3579]|4(?:[14]4|56))?',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' => [
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' => [
'46',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
[
'pattern' => '(\\d{3})(\\d{7})',
'format' => '$1 $2',
Expand Down Expand Up @@ -130,6 +147,16 @@
],
],
'intlNumberFormat' => [
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
'leadingDigitsPatterns' => [
'46',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
[
'pattern' => '(\\d{3})(\\d{7})',
'format' => '$1 $2',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_EE.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'PossibleLengthLocalOnly' => [],
],
'mobile' => [
'NationalNumberPattern' => '(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}',
'NationalNumberPattern' => '(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}',
'ExampleNumber' => '51234567',
'PossibleLength' => [
7,
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_MG.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
],
'fixedLine' => [
'NationalNumberPattern' => '2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[245])\\d{5}',
'NationalNumberPattern' => '2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])\\d{5}',
'ExampleNumber' => '202123456',
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [
Expand Down
14 changes: 7 additions & 7 deletions src/data/PhoneNumberMetadata_MQ.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@

return [
'generalDesc' => [
'NationalNumberPattern' => '596\\d{6}|(?:69|80|9\\d)\\d{7}',
'NationalNumberPattern' => '596\\d{6}|(?:69|[89]\\d)\\d{7}',
'PossibleLength' => [
9,
],
'PossibleLengthLocalOnly' => [],
],
'fixedLine' => [
'NationalNumberPattern' => '596(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])\\d{4}',
'NationalNumberPattern' => '(?:596(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}',
'ExampleNumber' => '596301234',
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [],
],
'mobile' => [
'NationalNumberPattern' => '69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}',
'NationalNumberPattern' => '69[67]\\d{6}',
'ExampleNumber' => '696201234',
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [],
Expand All @@ -33,9 +33,9 @@
'PossibleLengthLocalOnly' => [],
],
'premiumRate' => [
'PossibleLength' => [
-1,
],
'NationalNumberPattern' => '8[129]\\d{7}',
'ExampleNumber' => '810123456',
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [],
],
'sharedCost' => [
Expand Down Expand Up @@ -91,7 +91,7 @@
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
'leadingDigitsPatterns' => [
'[569]',
'[569]|8(?:0[6-9]|[36])',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_MV.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'PossibleLengthLocalOnly' => [],
],
'fixedLine' => [
'NationalNumberPattern' => '(?:3(?:0[0-3]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}',
'NationalNumberPattern' => '(?:3(?:0[0-4]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}',
'ExampleNumber' => '6701234',
'PossibleLength' => [
7,
Expand Down
14 changes: 7 additions & 7 deletions src/data/PhoneNumberMetadata_PM.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,21 @@

return [
'generalDesc' => [
'NationalNumberPattern' => '[45]\\d{5}|(?:708|80\\d)\\d{6}',
'NationalNumberPattern' => '[45]\\d{5}|(?:708|8\\d\\d)\\d{6}',
'PossibleLength' => [
6,
9,
],
'PossibleLengthLocalOnly' => [],
],
'fixedLine' => [
'NationalNumberPattern' => '(?:4[1-35-7]|5[01])\\d{4}',
'NationalNumberPattern' => '(?:4[1-35-9]|5[0-47-9]|80[6-9]\\d\\d)\\d{4}',
'ExampleNumber' => '430123',
'PossibleLength' => [
6,
],
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [],
],
'mobile' => [
'NationalNumberPattern' => '(?:4[02-4]|5[056]|708[45][0-5])\\d{4}',
'NationalNumberPattern' => '(?:4[02-489]|5[02-9]|708[45][0-5])\\d{4}',
'ExampleNumber' => '551234',
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [],
Expand All @@ -38,8 +36,10 @@
'PossibleLengthLocalOnly' => [],
],
'premiumRate' => [
'NationalNumberPattern' => '8[129]\\d{7}',
'ExampleNumber' => '810123456',
'PossibleLength' => [
-1,
9,
],
'PossibleLengthLocalOnly' => [],
],
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 @@ -25,7 +25,7 @@
'PossibleLengthLocalOnly' => [],
],
'mobile' => [
'NationalNumberPattern' => '(?:8(?:0(?:[1-8]\\d|9[0-689])|[1-8]\\d\\d|9(?:[0-4]\\d|5[0-3]|6[0-2]))|9[0-8]\\d\\d)\\d{4}',
'NationalNumberPattern' => '8(?:09[0-689]|96[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-5])|9[0-8]\\d)\\d{5}',
'ExampleNumber' => '81234567',
'PossibleLength' => [
8,
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 @@ -31,7 +31,7 @@
],
],
'mobile' => [
'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}',
'NationalNumberPattern' => '(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0178]|2[02]|[34]0|5[05]|7[01578]|8[078])\\d{7}',
'ExampleNumber' => '917123456',
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [],
Expand Down
27 changes: 20 additions & 7 deletions src/data/ShortNumberMetadata_MQ.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,53 @@

return [
'generalDesc' => [
'NationalNumberPattern' => '1\\d\\d?',
'NationalNumberPattern' => '[13]\\d(?:\\d(?:\\d(?:\\d{2})?)?)?',
'PossibleLength' => [
2,
3,
4,
6,
],
'PossibleLengthLocalOnly' => [],
],
'tollFree' => [
'NationalNumberPattern' => '1(?:12|[578])',
'NationalNumberPattern' => '1(?:12|[578])|3[01]\\d\\d',
'ExampleNumber' => '15',
'PossibleLength' => [],
'PossibleLength' => [
2,
3,
4,
],
'PossibleLengthLocalOnly' => [],
],
'premiumRate' => [
'NationalNumberPattern' => '3[2469]\\d\\d',
'ExampleNumber' => '3200',
'PossibleLength' => [
-1,
4,
],
'PossibleLengthLocalOnly' => [],
],
'emergency' => [
'NationalNumberPattern' => '1(?:12|[578])',
'ExampleNumber' => '15',
'PossibleLength' => [],
'PossibleLength' => [
2,
3,
],
'PossibleLengthLocalOnly' => [],
],
'shortCode' => [
'NationalNumberPattern' => '1(?:12|[578])',
'NationalNumberPattern' => '1(?:12|[578])|(?:118[02-9]|3[0-2469])\\d\\d',
'ExampleNumber' => '15',
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [],
],
'standardRate' => [
'NationalNumberPattern' => '118\\d{3}',
'ExampleNumber' => '118000',
'PossibleLength' => [
-1,
6,
],
'PossibleLengthLocalOnly' => [],
],
Expand Down
16 changes: 11 additions & 5 deletions src/data/ShortNumberMetadata_PM.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,28 @@

return [
'generalDesc' => [
'NationalNumberPattern' => '[13]\\d(?:\\d{2})?',
'NationalNumberPattern' => '[13]\\d(?:\\d\\d(?:\\d{2})?)?',
'PossibleLength' => [
2,
4,
6,
],
'PossibleLengthLocalOnly' => [],
],
'tollFree' => [
'NationalNumberPattern' => '1[578]',
'NationalNumberPattern' => '1[578]|3(?:0\\d|1[689])\\d',
'ExampleNumber' => '15',
'PossibleLength' => [
2,
4,
],
'PossibleLengthLocalOnly' => [],
],
'premiumRate' => [
'NationalNumberPattern' => '3[2469]\\d\\d',
'ExampleNumber' => '3200',
'PossibleLength' => [
-1,
4,
],
'PossibleLengthLocalOnly' => [],
],
Expand All @@ -38,14 +42,16 @@
'PossibleLengthLocalOnly' => [],
],
'shortCode' => [
'NationalNumberPattern' => '1[578]|3103',
'NationalNumberPattern' => '1[578]|31(?:03|[689]\\d)|(?:118[02-9]|3[02469])\\d\\d',
'ExampleNumber' => '15',
'PossibleLength' => [],
'PossibleLengthLocalOnly' => [],
],
'standardRate' => [
'NationalNumberPattern' => '118\\d{3}',
'ExampleNumber' => '118000',
'PossibleLength' => [
-1,
6,
],
'PossibleLengthLocalOnly' => [],
],
Expand Down
1 change: 1 addition & 0 deletions src/geocoding/data/en/960.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
960301 => 'Malé/Hulhulé/Aarah',
960302 => 'Malé Region',
960303 => 'Malé Region',
960304 => 'Malé Region',
960330 => 'Malé/Hulhulé/Aarah',
960331 => 'Malé/Hulhulé/Aarah',
960332 => 'Malé/Hulhulé/Aarah',
Expand Down

0 comments on commit 3f5414a

Please sign in to comment.