From e31ee018b4678ecb8192530a422d7b1b503d9bfe Mon Sep 17 00:00:00 2001 From: Joshua Gigg Date: Wed, 24 Jul 2024 13:20:26 +0100 Subject: [PATCH] Upstream metadata changes from Google for v8.13.41 - Updated phone metadata for region code(s): CN, IL - Updated short number metadata for region code(s): CN --- METADATA-VERSION.php | 2 +- src/data/PhoneNumberMetadata_CN.php | 8 ++++---- src/data/PhoneNumberMetadata_IL.php | 2 +- src/data/ShortNumberMetadata_CN.php | 17 +++++++++-------- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/METADATA-VERSION.php b/METADATA-VERSION.php index 1e52cf26..700d306b 100644 --- a/METADATA-VERSION.php +++ b/METADATA-VERSION.php @@ -5,4 +5,4 @@ * For more information, look at the phing tasks in build.xml * @internal */ -return 'v8.13.40'; +return 'v8.13.41'; diff --git a/src/data/PhoneNumberMetadata_CN.php b/src/data/PhoneNumberMetadata_CN.php index 4238d049..772db05e 100644 --- a/src/data/PhoneNumberMetadata_CN.php +++ b/src/data/PhoneNumberMetadata_CN.php @@ -118,9 +118,9 @@ 'pattern' => '(\\d{5,6})', 'format' => '$1', 'leadingDigitsPatterns' => [ - '1(?:00|2[13])|95', - '1(?:00|2(?:11|39))|95', - '1(?:00|2(?:110|395))|95', + '1(?:00|2[13])|9[56]', + '1(?:00|2(?:1|39))|9[56]', + '1(?:00|2(?:1|395))|9[56]', ], 'nationalPrefixFormattingRule' => '', 'domesticCarrierCodeFormattingRule' => '', @@ -129,7 +129,7 @@ 'pattern' => '(\\d{5,6})', 'format' => '$1', 'leadingDigitsPatterns' => [ - '10|96', + '10', ], 'nationalPrefixFormattingRule' => '', 'domesticCarrierCodeFormattingRule' => '', diff --git a/src/data/PhoneNumberMetadata_IL.php b/src/data/PhoneNumberMetadata_IL.php index 119c0bf6..37c40ed6 100644 --- a/src/data/PhoneNumberMetadata_IL.php +++ b/src/data/PhoneNumberMetadata_IL.php @@ -33,7 +33,7 @@ ], ], 'mobile' => [ - 'pattern' => '55410\\d{4}|5(?:(?:[02][02-9]|[149][2-9]|[36]\\d|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[34]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}', + 'pattern' => '55(?:410|57[0-289])\\d{4}|5(?:(?:[02][02-9]|[149][2-9]|[36]\\d|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[34]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}', 'example' => '502345678', 'posLength' => [ 9, diff --git a/src/data/ShortNumberMetadata_CN.php b/src/data/ShortNumberMetadata_CN.php index 6f0dca3c..07927086 100644 --- a/src/data/ShortNumberMetadata_CN.php +++ b/src/data/ShortNumberMetadata_CN.php @@ -10,15 +10,16 @@ 'id' => 'CN', 'countryCode' => 0, 'generalDesc' => [ - 'pattern' => '[19]\\d\\d(?:\\d{2,3})?', + 'pattern' => '[19]\\d{2,5}', 'posLength' => [ 3, + 4, 5, 6, ], ], 'tollFree' => [ - 'pattern' => '1(?:1[09]|2(?:[02]|[13]\\d\\d))', + 'pattern' => '1(?:1[09]|2(?:[02]|1\\d\\d|395))', 'example' => '110', 'posLength' => [ 3, @@ -38,12 +39,12 @@ ], ], 'shortCode' => [ - 'pattern' => '1(?:00\\d\\d|1[029]|2(?:[02]|110|395))|95\\d{3,4}', - 'example' => '110', + 'pattern' => '1(?:00|1[0249]|2395|6[08])|9[56]\\d{3,4}|12[023]|1(?:0(?:[0-26]\\d|8)|21\\d)\\d', + 'example' => '100', ], 'standardRate' => [ - 'pattern' => '1(?:00\\d\\d|12)|95\\d{3,4}', - 'example' => '112', + 'pattern' => '1(?:0(?:[0-26]\\d|8)\\d|1[24]|23|6[08])|9[56]\\d{3,4}|100', + 'example' => '100', ], 'carrierSpecific' => [ 'posLength' => [ @@ -51,8 +52,8 @@ ], ], 'smsServices' => [ - 'pattern' => '121\\d\\d', - 'example' => '12100', + 'pattern' => '12110', + 'example' => '12110', 'posLength' => [ 5, ],