Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -1002,17 +1002,17 @@
},
{
"name": "giggsey/libphonenumber-for-php-lite",
"version": "8.13.27",
"version_normalized": "8.13.27.0",
"version": "8.13.34",
"version_normalized": "8.13.34.0",
"source": {
"type": "git",
"url": "https://github.com/giggsey/libphonenumber-for-php-lite.git",
"reference": "31ef173acc59e3b6850a85aebcc8bcac88b91f5b"
"reference": "feef98fb9ee2c7bc6c689a007ad38ccc8569486f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/31ef173acc59e3b6850a85aebcc8bcac88b91f5b",
"reference": "31ef173acc59e3b6850a85aebcc8bcac88b91f5b",
"url": "https://api.github.com/repos/giggsey/libphonenumber-for-php-lite/zipball/feef98fb9ee2c7bc6c689a007ad38ccc8569486f",
"reference": "feef98fb9ee2c7bc6c689a007ad38ccc8569486f",
"shasum": ""
},
"require": {
Expand All @@ -1039,7 +1039,7 @@
"suggest": {
"giggsey/libphonenumber-for-php": "Use libphonenumber-for-php for geocoding, carriers, timezones and matching"
},
"time": "2023-12-19T08:18:51+00:00",
"time": "2024-04-05T09:46:43+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down
10 changes: 5 additions & 5 deletions composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'nextcloud/3rdparty',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '8b0b1d39a99caaab7fefebfda92543b01ba6a8bb',
'reference' => '78add140647f630e640d8356751ab9c56382ef2a',
'type' => 'library',
'install_path' => __DIR__ . '/../',
'aliases' => array(),
Expand Down Expand Up @@ -137,9 +137,9 @@
'dev_requirement' => false,
),
'giggsey/libphonenumber-for-php-lite' => array(
'pretty_version' => '8.13.27',
'version' => '8.13.27.0',
'reference' => '31ef173acc59e3b6850a85aebcc8bcac88b91f5b',
'pretty_version' => '8.13.34',
'version' => '8.13.34.0',
'reference' => 'feef98fb9ee2c7bc6c689a007ad38ccc8569486f',
'type' => 'library',
'install_path' => __DIR__ . '/../giggsey/libphonenumber-for-php-lite',
'aliases' => array(),
Expand Down Expand Up @@ -292,7 +292,7 @@
'nextcloud/3rdparty' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '8b0b1d39a99caaab7fefebfda92543b01ba6a8bb',
'reference' => '78add140647f630e640d8356751ab9c56382ef2a',
'type' => 'library',
'install_path' => __DIR__ . '/../',
'aliases' => array(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class PhoneNumberUtil
//protected const UNWANTED_END_CHAR_PATTERN = '[[\\P{N}&&\\P{L}]&&[^#]]+$';
protected const UNWANTED_END_CHAR_PATTERN = '[^' . self::DIGITS . self::VALID_ALPHA . '#]+$';
protected const DIALLABLE_CHAR_MAPPINGS = self::ASCII_DIGIT_MAPPINGS
+ [self::PLUS_SIGN => self::PLUS_SIGN]
+ [self::PLUS_SIGN => self::PLUS_SIGN]
+ ['*' => '*', '#' => '#'];


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
'fixedLine' =>
[
'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}',
'NationalNumberPattern' => '(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|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])|3\\d\\d)|(?: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' =>
[
Expand All @@ -36,7 +36,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}',
'NationalNumberPattern' => '4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '(?:4[0-6]|[56]\\d|9[013-9])\\d{6}',
'NationalNumberPattern' => '(?:4[0-7]|[56]\\d|9[013-9])\\d{6}',
'ExampleNumber' => '90011234',
],
'tollFree' =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}',
'NationalNumberPattern' => '69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}',
'ExampleNumber' => '690001234',
],
'tollFree' =>
Expand Down Expand Up @@ -53,7 +53,7 @@
],
'voip' =>
[
'NationalNumberPattern' => '9(?:(?:395|76[018])\\d|475[0-5])\\d{4}',
'NationalNumberPattern' => '9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}',
'ExampleNumber' => '976012345',
],
'pager' =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '441(?:[2378]\\d|5[0-39]|92)\\d{5}',
'NationalNumberPattern' => '441(?:[2378]\\d|5[0-39]|9[02])\\d{5}',
'ExampleNumber' => '4413701234',
'PossibleLengthLocalOnly' =>
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}',
'NationalNumberPattern' => '242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|3[0-4]|[89]9))\\d{4}',
'ExampleNumber' => '2423591234',
'PossibleLengthLocalOnly' =>
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}',
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}',
'ExampleNumber' => '5062345678',
'PossibleLength' =>
[
Expand All @@ -31,7 +31,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}',
'NationalNumberPattern' => '(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}',
'ExampleNumber' => '5062345678',
'PossibleLength' =>
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}',
'NationalNumberPattern' => '4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,27 @@
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '10|96',
0 => '1(?:00|2[13])|95',
1 => '1(?:00|2(?:11|39))|95',
2 => '1(?:00|2(?:110|395))|95',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
1 =>
[
'pattern' => '(\\d{5,6})',
'format' => '$1',
'leadingDigitsPatterns' =>
[
0 => '10|96',
],
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
[
'pattern' => '(\\d{2})(\\d{5,6})',
'format' => '$1 $2',
Expand All @@ -169,7 +183,7 @@
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
2 =>
3 =>
[
'pattern' => '(\\d{3})(\\d{4})',
'format' => '$1 $2',
Expand All @@ -183,7 +197,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
3 =>
4 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
Expand All @@ -195,7 +209,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
4 =>
5 =>
[
'pattern' => '(\\d{3})(\\d{5,6})',
'format' => '$1 $2',
Expand All @@ -210,7 +224,7 @@
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
5 =>
6 =>
[
'pattern' => '(\\d{4})(\\d{4})',
'format' => '$1 $2',
Expand All @@ -225,7 +239,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
6 =>
7 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -237,7 +251,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
7 =>
8 =>
[
'pattern' => '(\\d{2})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -251,7 +265,7 @@
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
8 =>
9 =>
[
'pattern' => '(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -263,7 +277,7 @@
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
9 =>
10 =>
[
'pattern' => '(\\d{3})(\\d{7,8})',
'format' => '$1 $2',
Expand All @@ -275,7 +289,7 @@
'domesticCarrierCodeFormattingRule' => '',
'nationalPrefixOptionalWhenFormatting' => false,
],
10 =>
11 =>
[
'pattern' => '(\\d{4})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -287,7 +301,7 @@
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
11 =>
12 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -299,7 +313,7 @@
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => true,
],
12 =>
13 =>
[
'pattern' => '(\\d{3})(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -311,7 +325,7 @@
'domesticCarrierCodeFormattingRule' => '$CC $1',
'nationalPrefixOptionalWhenFormatting' => false,
],
13 =>
14 =>
[
'pattern' => '(\\d{2})(\\d{3})(\\d{3})(\\d{4})',
'format' => '$1 $2 $3 $4',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
return [
'generalDesc' =>
[
'NationalNumberPattern' => '[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}',
'NationalNumberPattern' => '(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}',
'PossibleLength' =>
[
0 => 6,
Expand All @@ -35,7 +35,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '(?:5\\d|63)\\d{6}',
'NationalNumberPattern' => '(?:5\\d|6[2-4])\\d{6}',
'ExampleNumber' => '51234567',
'PossibleLength' =>
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}',
'NationalNumberPattern' => '4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}',
'ExampleNumber' => '412345678',
'PossibleLength' =>
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}',
'NationalNumberPattern' => '(?:60[1-8]\\d|7(?:0(?:[2-5]\\d|60)|190|[2379]\\d\\d))\\d{5}',
'ExampleNumber' => '601123456',
'PossibleLength' =>
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
],
'fixedLine' =>
[
'NationalNumberPattern' => '(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}',
'NationalNumberPattern' => '(?:(?:2\\d|9[1-46-9])\\d|3(?:[0-37]\\d|4[013]|5[0-58]|6[01347-9]|8[0-8]|9[0-79])|4(?:[0-25]\\d|[34][02-9]|6[013-579]|7[013579]|8[0-47]|9[0-27])|5(?:[0-36]\\d|4[0146-9]|5[03-57-9]|7[0568]|8[0-358]|9[0-69])|6(?:[013578]\\d|2[0-68]|4[02-8]|6[01689]|9[015689])|7(?:[0-69]\\d|7[03-9]|8[0147])|8(?:[16-9]\\d|2[0-58]))\\d{5}',
'ExampleNumber' => '32123456',
],
'mobile' =>
[
'NationalNumberPattern' => '(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}',
'ExampleNumber' => '32123456',
'ExampleNumber' => '34412345',
],
'tollFree' =>
[
Expand Down Expand Up @@ -87,7 +87,7 @@
'id' => 'DK',
'countryCode' => 45,
'internationalPrefix' => '00',
'sameMobileAndFixedLinePattern' => true,
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
[
0 =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
'mobile' =>
[
'NationalNumberPattern' => '(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}',
'NationalNumberPattern' => '(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}',
'ExampleNumber' => '650123456',
],
'tollFree' =>
Expand Down
Loading