Skip to content

Commit

Permalink
Upstream metadata changes from Google for v7.1.0
Browse files Browse the repository at this point in the history
Metadata changes:
 - Updated phone metadata for region code(s): BR, BS, HT, IR, KW, MC, PA, VU
 - Updated carrier data for country calling code(s):
   98 (en), 678 (en), 880 (en)
  • Loading branch information
giggsey committed Oct 8, 2015
1 parent 252294e commit 7527703
Show file tree
Hide file tree
Showing 12 changed files with 71 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/googlei18n/libphonenumber project
#
# For more information, look at the phing tasks in build.xml
libphonenumber-7.0.11
libphonenumber-7.1.0
4 changes: 4 additions & 0 deletions src/libphonenumber/carrier/data/en/678.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*/

return array (
67850 => 'Digicel',
67851 => 'Digicel',
67852 => 'Digicel',
67853 => 'Digicel',
67854 => 'Digicel',
67855 => 'Digicel',
Expand All @@ -15,6 +18,7 @@
678575 => 'Digicel',
678576 => 'Digicel',
678577 => 'Digicel',
67858 => 'Digicel',
67859 => 'Digicel',
67870 => 'SMILE',
67871 => 'SMILE',
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/carrier/data/en/880.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
return array (
88011 => 'Citycell',
88015 => 'TeleTalk',
88016 => 'Beeong3G',
88016 => 'Airtel',
88017 => 'Grameenphone',
88018 => 'Robi',
88019 => 'Banglalink',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/98.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
98937 => 'Irancell',
98938 => 'Irancell',
98939 => 'Irancell',
98990 => 'IR-MCI',
);
22 changes: 14 additions & 8 deletions src/libphonenumber/data/PhoneNumberMetadata_BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,21 @@
'mobile' =>
array (
'NationalNumberPattern' => '
1[1-9](?:
(?:
1[1-9]|
2[12478]|
[89][1-9]
)(?:
7|
9\\d
)\\d{7}|
(?:
2[12478]|
[89][1-9]
3[1-578]|
7[13-579]
)9?[6-9]\\d{7}|
(?:
3[1-578]|
[46][1-9]|
5[1-5]|
7[13-579]
5[1-5]
)[6-9]\\d{7}
',
'PossibleNumberPattern' => '\\d{10,11}',
Expand Down Expand Up @@ -180,7 +182,9 @@
0 => '
(?:
[189][1-9]|
2[12478]
2[12478]|
3[1-578]|
7[13-579]
)9
',
),
Expand Down Expand Up @@ -232,7 +236,9 @@
0 => '
(?:
[189][1-9]|
2[12478]
2[12478]|
3[1-578]|
7[13-579]
)9
',
),
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_BS.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
461|
502|
6(?:
0[12]|
0[1-3]|
12|
7[67]|
8[78]|
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_HT.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
array (
'NationalNumberPattern' => '
2(?:
[24]\\d|
[248]\\d|
5[1-5]|
94
)\\d{5}
Expand Down
6 changes: 4 additions & 2 deletions src/libphonenumber/data/PhoneNumberMetadata_IR.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
array (
'NationalNumberPattern' => '
9(?:
0[12]|
[1-3]\\d
0[1-3]|
[13]\\d|
2[0-2]|
90
)\\d{7}
',
'PossibleNumberPattern' => '\\d{10}',
Expand Down
37 changes: 21 additions & 16 deletions src/libphonenumber/data/PhoneNumberMetadata_KW.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,30 @@
'NationalNumberPattern' => '
(?:
5(?:
[05]\\d|
1[0-7]
[05]\\d{2}|
1[0-7]\\d|
2(?:
22|
55
)
)|
6(?:
0[034679]|
5[015-9]|
6\\d|
7[067]|
9[0369]
0[034679]\\d|
5[015-9]\\d|
6\\d{2}|
7[067]\\d|
9[0369]\\d
)|
9(?:
0[09]|
22|
4[01479]|
55|
6[0679]|
[79]\\d|
8[057-9]
0[09]\\d|
22\\d|
4[01479]\\d|
55\\d|
6[0679]\\d|
[79]\\d{2}|
8[057-9]\\d
)
)\\d{5}
)\\d{4}
',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '50012345',
Expand Down Expand Up @@ -142,7 +146,8 @@
array (
0 => '
[126]|
9[04-9]
9[04-9]|
52[25]
',
),
'nationalPrefixFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_MC.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
6\\d{8}|
4(?:
4\\d|
5[2-9]
5[1-9]
)\\d{5}
',
'PossibleNumberPattern' => '\\d{8,9}',
Expand Down
44 changes: 21 additions & 23 deletions src/libphonenumber/data/PhoneNumberMetadata_PA.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
'NationalNumberPattern' => '
(?:
1(?:
0[02-579]|
19|
0[0-8]|
1[49]|
2[37]|
3[03]|
4[479]|
57|
65|
7[016-8]|
3[0137]|
4[147]|
5[05]|
6[58]|
7[0167]|
8[58]|
9[1349]
9[139]
)|
2(?:
[0235679]\\d|
Expand All @@ -35,19 +35,19 @@
)|
3(?:
[09]\\d|
1[14-7]|
1[014-7]|
2[0-3]|
3[03]|
4[0457]|
5[56]|
4[03-57]|
55|
6[068]|
7[06-8]|
8[089]
8[06-9]
)|
4(?:
3[013-69]|
4\\d|
7[0-689]
7[0-589]
)|
5(?:
[01]\\d|
Expand All @@ -59,18 +59,19 @@
0[09]|
2[0-267]|
3[06]|
[49]0|
[469]0|
5[06-9]|
7[0-24-7]|
8[89]
7[0-24-79]|
8[7-9]
)|
8(?:
09|
[34]\\d|
5[0-4]|
5[0134]|
8[02]
)|
9(?:
0[6-8]|
0[6-9]|
1[016-8]|
2[036-8]|
3[3679]|
Expand Down Expand Up @@ -118,15 +119,12 @@
(?:
779|
8(?:
2[235]|
55|
60|
7[578]|
86|
95
7[78]
)|
9(?:
0[0-2]|
00|
81
)
)\\d{4}
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_VU.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
(?:
5(?:
7[2-5]|
[3-69]\\d
[0-689]\\d
)|
7[013-7]\\d
)\\d{4}
Expand Down

0 comments on commit 7527703

Please sign in to comment.