Skip to content

Commit

Permalink
Merge pull request #432 from giggsey/upstream-8.12.19
Browse files Browse the repository at this point in the history
Upstream metadata changes from Google for v8.12.19
  • Loading branch information
giggsey authored Mar 1, 2021
2 parents 2d50e0a + 65990d5 commit f3c196d
Show file tree
Hide file tree
Showing 38 changed files with 155 additions and 55 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.12.18
v8.12.19
11 changes: 7 additions & 4 deletions src/carrier/data/en/1.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,8 @@
180997 => 'Orange',
180998 => 'Orange',
180999 => 'Tricom',
1868263 => 'Digicel',
1868264 => 'Digicel',
1868265 => 'Digicel',
186825 => 'Digicel',
186826 => 'Digicel',
1868266 => 'bmobile',
1868267 => 'bmobile',
1868268 => 'bmobile',
Expand All @@ -476,7 +475,11 @@
186828 => 'bmobile',
186829 => 'bmobile',
18683 => 'Digicel',
18684 => 'bmobile',
186843 => 'Digicel',
186846 => 'bmobile',
186847 => 'bmobile',
186848 => 'bmobile',
186849 => 'bmobile',
1868620 => 'bmobile',
1868678 => 'bmobile',
186868 => 'bmobile',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/221.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
221754 => 'Promobile',
221755 => 'Promobile',
221756 => 'Promobile',
221757 => 'Origines',
22176 => 'Tigo',
22177 => 'Orange',
22178 => 'Orange',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/229.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

return array (
2295 => 'MTN',
22956 => 'Moov',
22960 => 'Moov',
22961 => 'MTN',
22962 => 'MTN',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/230.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
23054 => 'Emtel',
2305471 => 'Cellplus',
23055 => 'Emtel',
230550 => 'Cellplus',
23057 => 'Cellplus',
230571 => 'Emtel',
230572 => 'Emtel',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/232.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
23225 => 'Sierratel',
23230 => 'Africell',
23231 => 'QCELL',
23232 => 'QCELL',
23233 => 'Africell',
23234 => 'QCELL',
23235 => 'IPTEL',
Expand Down
4 changes: 4 additions & 0 deletions src/carrier/data/en/262.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
26269339 => 'Orange',
2626934 => 'Only',
26269350 => 'Only',
26269351 => 'Only',
26269352 => 'Only',
26269353 => 'Only',
26269354 => 'Only',
26269355 => 'Orange',
26269360 => 'Only',
26269361 => 'ZEOP Mobile',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/41.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
417840 => 'UPC Switzerland',
417841 => 'UPC Switzerland',
417842 => 'UPC Switzerland',
4178480 => 'Nexphone',
4178490 => 'Telecom26 AG',
41785 => 'Salt',
41786 => 'Salt',
Expand Down
3 changes: 3 additions & 0 deletions src/carrier/data/en/592.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
59261 => 'Guyana Telephone and Telegraph Company',
59262 => 'Guyana Telephone and Telegraph Company',
592630 => 'Digicel Guyana',
592632 => 'Digicel Guyana',
592636 => 'Digicel Guyana',
592637 => 'Digicel Guyana',
592638 => 'Guyana Telephone and Telegraph Company',
592639 => 'Guyana Telephone and Telegraph Company',
59264 => 'Guyana Telephone and Telegraph Company',
Expand Down
11 changes: 10 additions & 1 deletion src/carrier/data/en/596.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,16 @@
59669654 => 'Digicel',
59669655 => 'Orange',
59669656 => 'Orange',
5966966 => 'SFR/Rife',
59669660 => 'SFR/Rife',
59669661 => 'SFR/Rife',
59669662 => 'SFR/Rife',
59669663 => 'SFR/Rife',
59669664 => 'SFR/Rife',
59669665 => 'Free Caraïbe',
59669666 => 'Free Caraïbe',
59669667 => 'Free Caraïbe',
59669668 => 'Free Caraïbe',
59669669 => 'Free Caraïbe',
5966967 => 'Digicel',
5966968 => 'Orange',
59669687 => 'SFR/Rife',
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 @@ -22,6 +22,7 @@
658029 => 'SingTel',
658030 => 'SingTel',
658031 => 'SingTel',
658032 => 'Changi Travel Services Pte Ltd',
658033 => 'TPG',
658034 => 'TPG',
658035 => 'TPG',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/7.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
7708 => 'Altel',
774 => 'Tele2',
7760 => 'Kulan',
7761 => 'Tele2',
7762 => 'Nursat',
7763 => 'Arna',
7764 => '2Day Telecom',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/882.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
882342 => 'BebbiCell AG',
882347 => 'BebbiCell AG',
88237 => 'AT&T Cingular Wireless Network',
8824 => 'Monaco Telecom',
);
1 change: 1 addition & 0 deletions src/carrier/data/en/992.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
9920 => 'Megafon',
9921 => 'Tcell',
9922 => 'O-Mobile',
99230 => 'O-Mobile',
99240 => 'Tacom',
99241 => 'Megafon',
99250 => 'Tcell',
Expand Down
33 changes: 23 additions & 10 deletions src/data/PhoneNumberMetadata_882.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|[19]\\d{7}',
'NationalNumberPattern' => '[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}',
'PossibleLength' =>
array (
0 => 7,
Expand All @@ -40,14 +40,15 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '3(?:37\\d\\d|42)\\d{4}|3(?:2|47|7\\d{3})\\d{7}',
'NationalNumberPattern' => '342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}',
'ExampleNumber' => '3421234',
'PossibleLength' =>
array (
0 => 7,
1 => 9,
2 => 10,
3 => 12,
1 => 8,
2 => 9,
3 => 10,
4 => 12,
),
'PossibleLengthLocalOnly' =>
array (
Expand Down Expand Up @@ -165,6 +166,18 @@
'nationalPrefixOptionalWhenFormatting' => false,
),
1 =>
array (
'pattern' => '(\\d{2})(\\d{6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
0 => '4',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
2 =>
array (
'pattern' => '(\\d{2})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -176,7 +189,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
2 =>
3 =>
array (
'pattern' => '(\\d{2})(\\d{4})(\\d{3})',
'format' => '$1 $2 $3',
Expand All @@ -188,7 +201,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
3 =>
4 =>
array (
'pattern' => '(\\d{2})(\\d{3,4})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -200,7 +213,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
4 =>
5 =>
array (
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -212,7 +225,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
5 =>
6 =>
array (
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -224,7 +237,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
6 =>
7 =>
array (
'pattern' => '(\\d{2})(\\d{4,5})(\\d{5})',
'format' => '$1 $2 $3',
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 @@ -30,7 +30,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '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-7]|3[2-4]|[4-6]\\d))|91(?:[0-57-9]\\d|6[0135-9])\\d)\\d{3}|(?: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])|8(?:6[0-8]|[78]\\d|9[02-9]))\\d{6}',
'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}',
'ExampleNumber' => '212345678',
'PossibleLength' =>
array (
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_BJ.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '(?:[2689]\\d|51)\\d{6}',
'NationalNumberPattern' => '[25689]\\d{7}',
'PossibleLength' =>
array (
0 => 8,
Expand All @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:51|6\\d|9[013-9])\\d{6}',
'NationalNumberPattern' => '(?:5[1-35-8]|6\\d|9[013-9])\\d{6}',
'ExampleNumber' => '90011234',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_BW.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[0389]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}',
'NationalNumberPattern' => '(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}',
'ExampleNumber' => '2401234',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_CC.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '8(?:51(?:0(?:02|31|60|89)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}',
'NationalNumberPattern' => '8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}',
'ExampleNumber' => '891621234',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_CX.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|235)|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}',
'NationalNumberPattern' => '8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}',
'ExampleNumber' => '891641234',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_EH.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[0-8]|6[1267]|7[0-37]))\\d{6}',
'NationalNumberPattern' => '(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[0-8]|6[1267]|7[0-57]))\\d{6}',
'ExampleNumber' => '650123456',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_KZ.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '7(?:0[0-25-8]|47|6[02-4]|7[15-8]|85)\\d{7}',
'NationalNumberPattern' => '7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}',
'ExampleNumber' => '7710009998',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_MA.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[0-8]|6[1267]|7[0-37]))\\d{6}',
'NationalNumberPattern' => '(?:6(?:[0-79]\\d|8[0-247-9])|7(?:0[0-8]|6[1267]|7[0-57]))\\d{6}',
'ExampleNumber' => '650123456',
'PossibleLength' =>
array (
Expand Down
6 changes: 3 additions & 3 deletions src/data/PhoneNumberMetadata_MQ.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '596(?:0[0-7]|10|2[7-9]|3[05-9]|4[0-46-8]|[5-7]\\d|8[09]|9[4-8])\\d{4}',
'NationalNumberPattern' => '596(?:0[0-8]|10|2[7-9]|3[04-9]|[4-7]\\d|8[09]|9[4-9])\\d{4}',
'ExampleNumber' => '596301234',
'PossibleLength' =>
array (
Expand All @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '69(?:6(?:[0-47-9]\\d|5[0-6]|6[0-4])|727)\\d{4}',
'NationalNumberPattern' => '69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}',
'ExampleNumber' => '696201234',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -87,7 +87,7 @@
),
'voip' =>
array (
'NationalNumberPattern' => '976(?:6[1-9]|7[0-367])\\d{4}',
'NationalNumberPattern' => '976(?:6\\d|7[0-367])\\d{4}',
'ExampleNumber' => '976612345',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_MU.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|5(?:2[5-9]|4[3-589]|5[1-9]|7\\d|8[0-689]|9[0-8])\\d{5}',
'NationalNumberPattern' => '5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|5(?:2[5-9]|4[3-589]|[57]\\d|8[0-689]|9[0-8])\\d{5}',
'ExampleNumber' => '52512345',
'PossibleLength' =>
array (
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_NO.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:4[015-8]|5[89]|9\\d)\\d{6}',
'NationalNumberPattern' => '(?:4[015-8]|59|9\\d)\\d{6}',
'ExampleNumber' => '40612345',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -163,7 +163,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[489]|5[89]',
0 => '[489]|59',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_RE.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '26(?:2\\d\\d|30[01])\\d{4}',
'NationalNumberPattern' => '26(?:2\\d\\d|30[0-5])\\d{4}',
'ExampleNumber' => '262161234',
'PossibleLength' =>
array (
Expand All @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[05]|6[0-36]|7[0-27]|8[0-8]|9[0-479]))|9769\\d)\\d{4}',
'NationalNumberPattern' => '(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-36]|7[0-27]|8[0-8]|9[0-479]))|9769\\d)\\d{4}',
'ExampleNumber' => '692123456',
'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(?:0(?:1\\d|2[0147-9]|3[013-7])|[1-8]\\d\\d|9(?:[0-4]\\d|5[0-2]))|9[0-8]\\d\\d)\\d{4}',
'NationalNumberPattern' => '(?:8(?:0(?:1\\d|2[0147-9]|3[0-7])|[1-8]\\d\\d|9(?:[0-4]\\d|5[0-2]))|9[0-8]\\d\\d)\\d{4}',
'ExampleNumber' => '81234567',
'PossibleLength' =>
array (
Expand Down
Loading

0 comments on commit f3c196d

Please sign in to comment.