Skip to content

Commit

Permalink
Merge pull request #42 from giggsey/upstream-8.13.26
Browse files Browse the repository at this point in the history
Upstream metadata changes from Google for v8.13.26
  • Loading branch information
giggsey authored Nov 23, 2023
2 parents 02698e1 + cfd0aa7 commit 1172075
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 36 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.25
v8.13.26
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_EH.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
'tollFree' =>
[
'NationalNumberPattern' => '80\\d{7}',
'NationalNumberPattern' => '80[0-7]\\d{6}',
'ExampleNumber' => '801234567',
],
'premiumRate' =>
Expand All @@ -51,7 +51,7 @@
],
'voip' =>
[
'NationalNumberPattern' => '592(?:4[0-2]|93)\\d{4}',
'NationalNumberPattern' => '(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}',
'ExampleNumber' => '592401234',
],
'pager' =>
Expand Down
4 changes: 2 additions & 2 deletions src/data/PhoneNumberMetadata_HK.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:[45][0-8]|6[01]|9\\d))|58(?:0[1-9]|1[2-9]))\\d{4}',
'NationalNumberPattern' => '(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[59]\\d|6[01]))|58(?:0[1-9]|1[2-9]))\\d{4}',
'ExampleNumber' => '21234567',
'PossibleLength' =>
[
Expand All @@ -31,7 +31,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '(?:4(?:44[5-9]|6(?:1[0-6]|4[0-57-9]|6[0-4]))|573[0-6]|6(?:26[013-8]|66[0-3])|70(?:7[1-5]|8[0-4])|848[0-25-9]|9(?:29[013-9]|59[0-4]|899))\\d{4}|(?:4(?:4[015]|6[023578])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}',
'NationalNumberPattern' => '(?:4(?:44[5-9]|6(?:1[0-7]|4[0-57-9]|6[0-4]))|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-6]|8[0-4])|848[0-25-9]|9(?:29[013-9]|59[0-4]|899))\\d{4}|(?:4(?:4[015]|6[02357-9])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}',
'ExampleNumber' => '51234567',
'PossibleLength' =>
[
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_HR.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|77|9[67])))\\d{4}|98\\d{6}',
'NationalNumberPattern' => '9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|77|9[5-7])))\\d{4}|98\\d{6}',
'ExampleNumber' => '921234567',
'PossibleLength' =>
[
Expand Down
30 changes: 8 additions & 22 deletions src/data/PhoneNumberMetadata_MA.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
'fixedLine' =>
[
'NationalNumberPattern' => '5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}',
'NationalNumberPattern' => '5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}',
'ExampleNumber' => '520123456',
],
'mobile' =>
Expand All @@ -27,7 +27,7 @@
],
'tollFree' =>
[
'NationalNumberPattern' => '80\\d{7}',
'NationalNumberPattern' => '80[0-7]\\d{6}',
'ExampleNumber' => '801234567',
],
'premiumRate' =>
Expand All @@ -51,7 +51,7 @@
],
'voip' =>
[
'NationalNumberPattern' => '592(?:4[0-2]|93)\\d{4}',
'NationalNumberPattern' => '(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}',
'ExampleNumber' => '592401234',
],
'pager' =>
Expand Down Expand Up @@ -91,20 +91,6 @@
'numberFormat' =>
[
0 =>
[
'pattern' => '(\\d{5})(\\d{4})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '5(?:29|38)',
1 => '5(?:29[1289]|389)',
2 => '529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{3})(\\d{2})(\\d{2})(\\d{2})',
'format' => '$1 $2 $3 $4',
Expand All @@ -116,20 +102,20 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
1 =>
[
'pattern' => '(\\d{4})(\\d{5})',
'format' => '$1-$2',
'leadingDigitsPatterns' =>
[
0 => '5(?:2[2-489]|3[5-9]|9)|892',
1 => '5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892',
0 => '5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)',
1 => '5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
2 =>
[
'pattern' => '(\\d{2})(\\d{7})',
'format' => '$1-$2',
Expand All @@ -141,7 +127,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
3 =>
[
'pattern' => '(\\d{3})(\\d{6})',
'format' => '$1-$2',
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_MK.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-48]\\d|60|7[01578])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}',
'NationalNumberPattern' => '7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-48]\\d|6[01]|7[01578])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}',
'ExampleNumber' => '72345678',
],
'tollFree' =>
Expand Down
2 changes: 1 addition & 1 deletion src/data/PhoneNumberMetadata_PK.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '3(?:[0-24]\\d|3[0-79]|55|64)\\d{7}',
'NationalNumberPattern' => '3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}',
'ExampleNumber' => '3012345678',
'PossibleLength' =>
[
Expand Down
6 changes: 3 additions & 3 deletions src/data/PhoneNumberMetadata_RO.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
return [
'generalDesc' =>
[
'NationalNumberPattern' => '(?:[2378]\\d|90)\\d{7}|[23]\\d{5}',
'NationalNumberPattern' => '(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}',
'PossibleLength' =>
[
0 => 6,
Expand All @@ -23,7 +23,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '7020\\d{5}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-29])\\d{6}',
'NationalNumberPattern' => '7020\\d{5}|(?:62\\d|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}',
'ExampleNumber' => '712034567',
'PossibleLength' =>
[
Expand Down Expand Up @@ -153,7 +153,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '[237-9]',
0 => '[236-9]',
],
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
6 changes: 3 additions & 3 deletions src/data/PhoneNumberMetadata_TJ.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:4[046]|74|87))\\d{6}',
'NationalNumberPattern' => '(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}',
'ExampleNumber' => '372123456',
'PossibleLengthLocalOnly' =>
[
Expand All @@ -36,7 +36,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '(?:41[18]|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[0178]|8[078]|9\\d)\\d{7}',
'NationalNumberPattern' => '(?:4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[0178]|8[078]|9\\d)\\d{7}',
'ExampleNumber' => '917123456',
],
'tollFree' =>
Expand Down Expand Up @@ -128,7 +128,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
[
0 => '44[04]|[34]7',
0 => '44[02-479]|[34]7',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down

0 comments on commit 1172075

Please sign in to comment.