From 4ec0021f58ee2c790ded4da2b4993188487f78e0 Mon Sep 17 00:00:00 2001 From: Joshua Gigg Date: Tue, 19 Apr 2022 13:41:44 +0100 Subject: [PATCH] Upstream metadata changes from Google for v8.12.47 - Updated phone metadata for region code(s): FR, GB, GE, GG, HR, JE, MT, NC, PA, SE - Updated carrier data for country calling code(s): 33 (en), 41 (en), 46 (en), 351 (en), 385 (en), 420 (en), 974 (en), 995 (en) --- METADATA-VERSION.txt | 2 +- src/carrier/data/en/33.php | 2 ++ src/carrier/data/en/351.php | 1 + src/carrier/data/en/385.php | 3 ++- src/carrier/data/en/41.php | 6 ++++++ src/carrier/data/en/420.php | 1 + src/carrier/data/en/46.php | 1 + src/carrier/data/en/974.php | 2 ++ src/carrier/data/en/995.php | 7 ++++++- src/data/PhoneNumberMetadata_FR.php | 2 +- src/data/PhoneNumberMetadata_GB.php | 4 ++-- src/data/PhoneNumberMetadata_GE.php | 2 +- src/data/PhoneNumberMetadata_GG.php | 2 +- src/data/PhoneNumberMetadata_HR.php | 2 +- src/data/PhoneNumberMetadata_JE.php | 2 +- src/data/PhoneNumberMetadata_MT.php | 2 +- src/data/PhoneNumberMetadata_NC.php | 9 +++++---- src/data/PhoneNumberMetadata_PA.php | 2 +- src/data/PhoneNumberMetadata_SE.php | 2 +- 19 files changed, 37 insertions(+), 17 deletions(-) diff --git a/METADATA-VERSION.txt b/METADATA-VERSION.txt index 1628c2163..171c032aa 100644 --- a/METADATA-VERSION.txt +++ b/METADATA-VERSION.txt @@ -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.46 +v8.12.47 diff --git a/src/carrier/data/en/33.php b/src/carrier/data/en/33.php index 54373560d..0a4cf4e4e 100644 --- a/src/carrier/data/en/33.php +++ b/src/carrier/data/en/33.php @@ -269,6 +269,8 @@ 3375632 => 'Euroinformation Telecom', 3375633 => 'Euroinformation Telecom', 3375634 => 'Euroinformation Telecom', + 3375644 => 'SFR', + 3375645 => 'SFR', 337565 => 'Transatel', 337566 => 'Transatel', 337567 => 'Transatel', diff --git a/src/carrier/data/en/351.php b/src/carrier/data/en/351.php index 22ae4c783..d2e12de33 100644 --- a/src/carrier/data/en/351.php +++ b/src/carrier/data/en/351.php @@ -44,6 +44,7 @@ 3519292 => 'NOS', 3519293 => 'NOS', 3519294 => 'NOS', + 3519295 => 'Sumamovil Portugal', 35193 => 'NOS', 35196 => 'MEO', ); diff --git a/src/carrier/data/en/385.php b/src/carrier/data/en/385.php index d95878ba5..59a5c2e15 100644 --- a/src/carrier/data/en/385.php +++ b/src/carrier/data/en/385.php @@ -16,7 +16,8 @@ 38592 => 'A1 Telekom', 38595 => 'Tele2', 385970 => 'Hrvatski Telekom', - 385975 => 'Telefocus', + 3859751 => 'Telefocus', + 3859759 => 'Altavox', 385976 => 'Hrvatski Telekom', 385977 => 'Hrvatski Telekom', 385979 => 'Hrvatski Telekom', diff --git a/src/carrier/data/en/41.php b/src/carrier/data/en/41.php index e0cb9ff86..ef4a84a96 100644 --- a/src/carrier/data/en/41.php +++ b/src/carrier/data/en/41.php @@ -15,6 +15,12 @@ 417507 => 'Swisscom', 417508 => 'Swisscom', 417509 => 'Swisscom', + 417519 => 'Swisscom', + 417520 => 'Swisscom', + 417521 => 'Swisscom', + 417522 => 'Swisscom', + 417523 => 'Swisscom', + 417524 => 'Swisscom', 41754 => 'Swisscom', 417550 => 'Swisscom', 417551 => 'Swisscom', diff --git a/src/carrier/data/en/420.php b/src/carrier/data/en/420.php index 39db739d9..66060e830 100644 --- a/src/carrier/data/en/420.php +++ b/src/carrier/data/en/420.php @@ -181,6 +181,7 @@ 4207947 => 'O2', 4207948 => 'O2', 4207950 => 'Vectone Distribution Czech Republic s.r.o(Mundio)', + 4207951 => 'Vectone Distribution Czech Republic s.r.o(Mundio)', 42079750 => 'Dial Telecom', 4207976 => 'T-Mobile', 42079770 => 'T-Mobile', diff --git a/src/carrier/data/en/46.php b/src/carrier/data/en/46.php index 5c405a615..f6132c84e 100644 --- a/src/carrier/data/en/46.php +++ b/src/carrier/data/en/46.php @@ -271,6 +271,7 @@ 4672669 => 'Nortech', 467267 => 'TeliaSonera', 467268 => 'TeliaSonera', + 4672695 => 'Telenor Sverige', 4672698 => 'SWEDFONENET AB', 46726990 => 'Gotalandsnatet', 46726991 => 'Fast Communication', diff --git a/src/carrier/data/en/974.php b/src/carrier/data/en/974.php index 04cbc39a0..86588a610 100644 --- a/src/carrier/data/en/974.php +++ b/src/carrier/data/en/974.php @@ -24,6 +24,8 @@ 97433 => 'ooredoo', 974399 => 'ooredoo', 97450 => 'ooredoo', + 974510 => 'ooredoo', + 974511 => 'ooredoo', 974520 => 'ooredoo', 97455 => 'ooredoo', 974599 => 'ooredoo', diff --git a/src/carrier/data/en/995.php b/src/carrier/data/en/995.php index 91e072c8a..fb6c3ce92 100644 --- a/src/carrier/data/en/995.php +++ b/src/carrier/data/en/995.php @@ -15,7 +15,12 @@ 9955005 => 'MagtiCom', 9955007 => 'MyPhone', 995505 => 'MagtiCom', - 995511 => 'MagtiCom', + 9955110 => 'MagtiCom', + 9955111 => 'MagtiCom', + 9955112 => 'MagtiCom', + 9955113 => 'MagtiCom', + 9955115 => 'Silknet', + 9955117 => 'MagtiCom', 995514 => 'Geocell', 99552 => 'MagtiCom', 99553 => 'MagtiCom', diff --git a/src/data/PhoneNumberMetadata_FR.php b/src/data/PhoneNumberMetadata_FR.php index 1b4648617..2bb655b81 100644 --- a/src/data/PhoneNumberMetadata_FR.php +++ b/src/data/PhoneNumberMetadata_FR.php @@ -69,7 +69,7 @@ ), 'sharedCost' => array ( - 'NationalNumberPattern' => '8(?:1[01]|2[0156]|84)\\d{6}', + 'NationalNumberPattern' => '8(?:1[01]|2[0156]|4[02]|84)\\d{6}', 'ExampleNumber' => '884012345', 'PossibleLength' => array ( diff --git a/src/data/PhoneNumberMetadata_GB.php b/src/data/PhoneNumberMetadata_GB.php index 542ed149a..4dff4420f 100644 --- a/src/data/PhoneNumberMetadata_GB.php +++ b/src/data/PhoneNumberMetadata_GB.php @@ -31,7 +31,7 @@ ), 'fixedLine' => array ( - 'NationalNumberPattern' => '(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-278])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}', + 'NationalNumberPattern' => '(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-27-9])))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}', 'ExampleNumber' => '1212345678', 'PossibleLength' => array ( @@ -119,7 +119,7 @@ ), 'pager' => array ( - 'NationalNumberPattern' => '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}', + 'NationalNumberPattern' => '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', 'ExampleNumber' => '7640123456', 'PossibleLength' => array ( diff --git a/src/data/PhoneNumberMetadata_GE.php b/src/data/PhoneNumberMetadata_GE.php index 46984cb85..90615392c 100644 --- a/src/data/PhoneNumberMetadata_GE.php +++ b/src/data/PhoneNumberMetadata_GE.php @@ -40,7 +40,7 @@ ), 'mobile' => array ( - 'NationalNumberPattern' => '5(?:(?:0555|1177)[5-9]|757(?:7[7-9]|8[01]))\\d{3}|5(?:0070|(?:11|33)33|[25]222)[0-4]\\d{3}|5(?:00(?:0\\d|50)|11(?:00|1\\d|2[0-4])|5200|75(?:00|[57]5)|8(?:0(?:[01]\\d|2[0-4])|58[89]|8(?:55|88)))\\d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}', + 'NationalNumberPattern' => '5(?:(?:0555|1177)[5-9]|757(?:7[7-9]|8[01]))\\d{3}|5(?:00(?:0\\d|50)|11(?:00|1\\d|2[0-4]|3[01])|5200|75(?:00|[57]5)|8(?:0(?:[01]\\d|2[0-4])|58[89]|8(?:55|88)))\\d{4}|5(?:0070|11(?:33|51)|[25]222|3333)[0-4]\\d{3}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}', 'ExampleNumber' => '555123456', 'PossibleLength' => array ( diff --git a/src/data/PhoneNumberMetadata_GG.php b/src/data/PhoneNumberMetadata_GG.php index 9374bd142..d5b5c2df7 100644 --- a/src/data/PhoneNumberMetadata_GG.php +++ b/src/data/PhoneNumberMetadata_GG.php @@ -111,7 +111,7 @@ ), 'pager' => array ( - 'NationalNumberPattern' => '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}', + 'NationalNumberPattern' => '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', 'ExampleNumber' => '7640123456', 'PossibleLength' => array ( diff --git a/src/data/PhoneNumberMetadata_HR.php b/src/data/PhoneNumberMetadata_HR.php index 7573ffdd1..6e5c07879 100644 --- a/src/data/PhoneNumberMetadata_HR.php +++ b/src/data/PhoneNumberMetadata_HR.php @@ -43,7 +43,7 @@ ), 'mobile' => array ( - 'NationalNumberPattern' => '9(?:751\\d{5}|8\\d{6,7})|9(?:0[1-9]|[1259]\\d|7[0679])\\d{6}', + 'NationalNumberPattern' => '98\\d{6,7}|975(?:1\\d|96)\\d{4}|9(?:0[1-9]|[1259]\\d|7[0679])\\d{6}', 'ExampleNumber' => '921234567', 'PossibleLength' => array ( diff --git a/src/data/PhoneNumberMetadata_JE.php b/src/data/PhoneNumberMetadata_JE.php index 4bc4e19dc..be30d82bf 100644 --- a/src/data/PhoneNumberMetadata_JE.php +++ b/src/data/PhoneNumberMetadata_JE.php @@ -103,7 +103,7 @@ ), 'pager' => array ( - 'NationalNumberPattern' => '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}', + 'NationalNumberPattern' => '76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}', 'ExampleNumber' => '7640123456', 'PossibleLength' => array ( diff --git a/src/data/PhoneNumberMetadata_MT.php b/src/data/PhoneNumberMetadata_MT.php index b5bedad4b..9fcd9e278 100644 --- a/src/data/PhoneNumberMetadata_MT.php +++ b/src/data/PhoneNumberMetadata_MT.php @@ -47,7 +47,7 @@ ), 'tollFree' => array ( - 'NationalNumberPattern' => '800[3467]\\d{4}', + 'NationalNumberPattern' => '800(?:02|[3467]\\d)\\d{3}', 'ExampleNumber' => '80071234', 'PossibleLength' => array ( diff --git a/src/data/PhoneNumberMetadata_NC.php b/src/data/PhoneNumberMetadata_NC.php index 5f1a1441f..ff722f92a 100644 --- a/src/data/PhoneNumberMetadata_NC.php +++ b/src/data/PhoneNumberMetadata_NC.php @@ -14,7 +14,7 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[2-57-9]\\d{5}', + 'NationalNumberPattern' => '(?:050|[2-57-9]\\d\\d)\\d{3}', 'PossibleLength' => array ( 0 => 6, @@ -47,9 +47,10 @@ ), 'tollFree' => array ( + 'NationalNumberPattern' => '050\\d{3}', + 'ExampleNumber' => '050012', 'PossibleLength' => array ( - 0 => -1, ), 'PossibleLengthLocalOnly' => array ( @@ -160,7 +161,7 @@ 'format' => '$1.$2.$3', 'leadingDigitsPatterns' => array ( - 0 => '[2-57-9]', + 0 => '[02-57-9]', ), 'nationalPrefixFormattingRule' => '', 'domesticCarrierCodeFormattingRule' => '', @@ -175,7 +176,7 @@ 'format' => '$1.$2.$3', 'leadingDigitsPatterns' => array ( - 0 => '[2-57-9]', + 0 => '[02-57-9]', ), 'nationalPrefixFormattingRule' => '', 'domesticCarrierCodeFormattingRule' => '', diff --git a/src/data/PhoneNumberMetadata_PA.php b/src/data/PhoneNumberMetadata_PA.php index 6d732b178..8c7d4fe69 100644 --- a/src/data/PhoneNumberMetadata_PA.php +++ b/src/data/PhoneNumberMetadata_PA.php @@ -28,7 +28,7 @@ ), 'fixedLine' => array ( - 'NationalNumberPattern' => '(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[258]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[05]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[6-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}', + 'NationalNumberPattern' => '(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[258]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[0-35]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[5-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}', 'ExampleNumber' => '2001234', 'PossibleLength' => array ( diff --git a/src/data/PhoneNumberMetadata_SE.php b/src/data/PhoneNumberMetadata_SE.php index 06bb6ac3d..b311b12f6 100644 --- a/src/data/PhoneNumberMetadata_SE.php +++ b/src/data/PhoneNumberMetadata_SE.php @@ -71,7 +71,7 @@ ), 'premiumRate' => array ( - 'NationalNumberPattern' => '649\\d{6}|9(?:(?:00|39|44)[1-8]\\d{3,6}|9[1-59]\\d{4})', + 'NationalNumberPattern' => '649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}', 'ExampleNumber' => '9001234567', 'PossibleLength' => array (