Skip to content

Commit

Permalink
Upstrea metadata changes from Google for v8.12.24
Browse files Browse the repository at this point in the history
 - Updated phone metadata for region code(s):
   883, AX, FI, GE, IR, PA, PG, PH, SG, SL, UZ
 - Updated carrier data for country calling code(s):
   33 (en), 63 (en), 65 (en), 98 (en, fa), 358 (en), 507 (en), 675 (en),
   995 (en)
  • Loading branch information
giggsey committed May 26, 2021
1 parent b18f2d0 commit 39541f4
Show file tree
Hide file tree
Showing 21 changed files with 48 additions and 39 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.23
v8.12.24
5 changes: 5 additions & 0 deletions src/carrier/data/en/33.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@
3375758 => 'Euroinformation Telecom',
3375763 => 'Euroinformation Telecom',
3375767 => 'Euroinformation Telecom',
3375770 => 'SFR',
3375771 => 'SFR',
3375772 => 'SFR',
3375773 => 'SFR',
3375774 => 'SFR',
3375777 => 'Euroinformation Telecom',
3375779 => 'Halys',
3375787 => 'Euroinformation Telecom',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/358.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
3584579 => 'DNA',
358458 => 'Elisa',
35846 => 'Elisa',
35849 => 'Elisa',
35850 => 'Elisa',
);
1 change: 1 addition & 0 deletions src/carrier/data/en/507.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
50761 => 'Digicel',
507616 => 'Telefónica Móviles',
507617 => 'Claro',
507618 => 'Claro',
50762 => 'Claro',
507630 => 'Claro',
507631 => 'Claro',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/en/63.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

return array (
63813 => 'Smart',
6389 => 'Dito',
63905 => 'Globe',
63906 => 'Globe',
63907 => 'Smart',
Expand Down
3 changes: 2 additions & 1 deletion src/carrier/data/en/65.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
658033 => 'TPG',
658034 => 'TPG',
658035 => 'TPG',
65804 => 'SingTel',
658040 => 'SingTel',
658041 => 'M1',
6581 => 'StarHub',
65810 => 'M1',
65812 => 'SingTel',
Expand Down
22 changes: 2 additions & 20 deletions src/carrier/data/en/675.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,11 @@
*/

return array (
67570 => 'Digicel',
67571 => 'Digicel',
67572 => 'Digicel',
67573 => 'Digicel',
67574 => 'Digicel',
6757 => 'Digicel',
67575 => 'bmobile',
67576 => 'bmobile',
6757731 => 'Telikom',
6757732 => 'Telikom',
6757733 => 'Telikom',
6757734 => 'Telikom',
6757735 => 'Telikom',
6757736 => 'Telikom',
6757737 => 'Telikom',
6757738 => 'Telikom',
6757739 => 'Telikom',
675775 => 'Telikom',
675776 => 'Telikom',
675777 => 'Telikom',
675778 => 'Telikom',
675779 => 'Telikom',
67577 => 'bmobile',
67578 => 'Telikom',
67579 => 'Digicel',
67581 => 'DIGIVOIP',
67588 => 'Digicel',
);
1 change: 1 addition & 0 deletions src/carrier/data/en/98.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
989981 => 'Shatel Mobile',
9899900 => 'LOTUSTEL',
989991 => 'Irancell',
989998 => 'Rightel',
9899996 => 'Rightel',
9899997 => 'Rightel',
9899998 => 'Rightel',
Expand Down
4 changes: 3 additions & 1 deletion src/carrier/data/en/995.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
return array (
9955000 => 'Mobilaive',
9955005 => 'MagtiCom',
9955007 => 'MyPhone',
995505 => 'MagtiCom',
995511 => 'MagtiCom',
995514 => 'Geocell',
Expand Down Expand Up @@ -45,7 +46,8 @@
995577 => 'Geocell',
995579 => 'Veon',
995585 => 'MagtiCom',
995588 => 'Geocell',
9955885 => 'Silknet',
9955888 => 'Geocell',
995591 => 'MagtiCom',
995592 => 'Veon',
995593 => 'Geocell',
Expand Down
1 change: 1 addition & 0 deletions src/carrier/data/fa/98.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
989981 => 'شاتل موبایل',
9899900 => 'لوتوس‌تل',
989991 => 'ایرانسل',
989998 => 'رایتل',
9899996 => 'رایتل',
9899997 => 'رایتل',
9899998 => 'رایتل',
Expand Down
21 changes: 17 additions & 4 deletions src/data/PhoneNumberMetadata_883.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '51\\d{7}(?:\\d{3})?',
'NationalNumberPattern' => '210\\d{7}|51\\d{7}(?:\\d{3})?',
'PossibleLength' =>
array (
0 => 9,
1 => 12,
1 => 10,
2 => 12,
),
'PossibleLengthLocalOnly' =>
array (
Expand Down Expand Up @@ -86,7 +87,7 @@
),
'voip' =>
array (
'NationalNumberPattern' => '51[013]0\\d{8}|5100\\d{5}',
'NationalNumberPattern' => '(?:210|51[013]0\\d)\\d{7}|5100\\d{5}',
'ExampleNumber' => '510012345',
'PossibleLength' =>
array (
Expand Down Expand Up @@ -154,6 +155,18 @@
'nationalPrefixOptionalWhenFormatting' => false,
),
1 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '2',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
2 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3 $4',
Expand All @@ -165,7 +178,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
),
2 =>
3 =>
array (
'pattern' => '(\\d{4})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_AX.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:4[0-8]|50)\\d{4,8}',
'NationalNumberPattern' => '4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_FI.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:4[0-8]|50)\\d{4,8}',
'NationalNumberPattern' => '4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_GE.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '5(?:0(?:0(?:0\\d|50)\\d|555[5-9])|(?:111\\d|8(?:58[89]|888))\\d|(?:2222|3333)[0-4]|52(?:00\\d|22[0-4])|75(?:00\\d|7(?:7[7-9]|8[01])))\\d{3}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}',
'NationalNumberPattern' => '5(?:0555[5-9]|757(?:7[7-9]|8[01]))\\d{3}|5(?:0070|[25]222|3333)[0-4]\\d{3}|5(?:00(?:0\\d|50)|111\\d|(?:52|75)00|8(?:58[89]|8(?:55|88)))\\d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}',
'ExampleNumber' => '555123456',
'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 @@ -47,7 +47,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '99(?:5[15]0|888|9(?:0[013]|21|77|88))\\d{5}|9(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d|9(?:[0-2]\\d|3[01]|4[0145]|81|9[19]))\\d{6}',
'NationalNumberPattern' => '9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:(?:[0-2]\\d|3[01]|4[0145])\\d|5[15]0|8(?:1\\d|88)|9(?:0[013]|[19]\\d|21|77|8[7-9])))\\d{5}',
'ExampleNumber' => '9123456789',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_PA.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:1[16]1|21[89]|6(?:[02-9]\\d|1[0-7])\\d|8(?:1[01]|7[23]))\\d{4}',
'NationalNumberPattern' => '(?:1[16]1|21[89]|6(?:[02-9]\\d|1[0-8])\\d|8(?:1[01]|7[23]))\\d{4}',
'ExampleNumber' => '61234567',
'PossibleLength' =>
array (
Expand Down
5 changes: 3 additions & 2 deletions src/data/PhoneNumberMetadata_PG.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '(?:64[1-9]|7730|85[02-46-9])\\d{4}|(?:3[0-2]|4[257]|5[34]|77[0-24]|9[78])\\d{5}',
'NationalNumberPattern' => '(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}',
'ExampleNumber' => '3123456',
'PossibleLength' =>
array (
0 => 7,
),
'PossibleLengthLocalOnly' =>
array (
),
),
'mobile' =>
array (
'NationalNumberPattern' => '77(?:3[1-9]|[5-9]\\d)\\d{4}|(?:7[0-689]|8[18])\\d{6}',
'NationalNumberPattern' => '(?:7\\d|8[18])\\d{6}',
'ExampleNumber' => '70123456',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_PH.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:81[37]|9(?:0[5-9]|1[0-24-9]|[2357]\\d|4[2-9]|6[0-35-9]|8[189]|9[1-9]))\\d{7}',
'NationalNumberPattern' => '(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[2357]\\d|4[2-9]|6[0-35-9]|8[189]|9[1-9]))\\d{7}',
'ExampleNumber' => '9051234567',
'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(?:[13]\\d|2[013-9]|40)|[1-8]\\d\\d|9(?:[0-4]\\d|5[0-2]))|9[0-8]\\d\\d)\\d{4}',
'NationalNumberPattern' => '(?:8(?:0(?:[13]\\d|2[013-9]|4[01])|[1-8]\\d\\d|9(?:[0-4]\\d|5[0-2]))|9[0-8]\\d\\d)\\d{4}',
'ExampleNumber' => '81234567',
'PossibleLength' =>
array (
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_SL.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '(?:[2378]\\d|66|99)\\d{6}',
'NationalNumberPattern' => '(?:[237-9]\\d|66)\\d{6}',
'PossibleLength' =>
array (
0 => 8,
Expand All @@ -38,7 +38,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:25|3[0-5]|66|7[3-9]|8[08]|99)\\d{6}',
'NationalNumberPattern' => '(?:25|3[0-5]|66|7[3-9]|8[08]|9[09])\\d{6}',
'ExampleNumber' => '25123456',
'PossibleLength' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_UZ.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '(?:(?:33|88|9[0-57-9])\\d{3}|55(?:501|90\\d)|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}',
'NationalNumberPattern' => '(?:(?:33|88|9[0-57-9])\\d{3}|55(?:50[13]|90\\d)|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}',
'ExampleNumber' => '912345678',
'PossibleLength' =>
array (
Expand Down

0 comments on commit 39541f4

Please sign in to comment.