From f670c19bde052a93aa66ce3f24c2436794aa4618 Mon Sep 17 00:00:00 2001 From: webimpress Date: Wed, 25 Sep 2019 17:44:41 +0100 Subject: [PATCH] Fix Luxembourgish PhoneNumber regexp Updated tests Fixes #51 --- src/Validator/PhoneNumber/LU.php | 2 +- test/Validator/PhoneNumberTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Validator/PhoneNumber/LU.php b/src/Validator/PhoneNumber/LU.php index c0ddb45f..e52d68fd 100644 --- a/src/Validator/PhoneNumber/LU.php +++ b/src/Validator/PhoneNumber/LU.php @@ -13,7 +13,7 @@ 'national' => [ 'general' => '/^(?:[24-9]\\d{3,10}|3(?:[0-46-9]\\d{2,9}|5[013-9]\\d{1,8}))$/', 'fixed' => '/^(?:2(?:2\\d{1,2}|3[2-9]|[67]\\d|4[1-8]\\d?|5[1-5]\\d?|9[0-24-9]\\d?)|3(?:[059][05-9]|[13]\\d|[26][015-9]|4[0-26-9]|7[0-389]|8[08])\\d?|4\\d{2,3}|5(?:[01458]\\d|[27][0-69]|3[0-3]|[69][0-7])\\d?|7(?:1[019]|2[05-9]|3[05]|[45][07-9]|[679][089]|8[06-9])\\d?|8(?:0[2-9]|1[0-36-9]|3[3-9]|[469]9|[58][7-9]|7[89])\\d?|9(?:0[89]|2[0-49]|37|49|5[0-27-9]|7[7-9]|9[0-478])\\d?)\\d{1,7}$/', - 'mobile' => '/^6[269][18]\\d{6}$/', + 'mobile' => '/^6[25-79]1\\d{6}$/', 'tollfree' => '/^800\\d{5}$/', 'premium' => '/^90[01]\\d{5}$/', 'shared' => '/^801\\d{5}$/', diff --git a/test/Validator/PhoneNumberTest.php b/test/Validator/PhoneNumberTest.php index d3faeeca..2c33e1d1 100644 --- a/test/Validator/PhoneNumberTest.php +++ b/test/Validator/PhoneNumberTest.php @@ -1674,7 +1674,7 @@ class PhoneNumberTest extends TestCase 'patterns' => [ 'example' => [ 'fixed' => '27123456', - 'mobile' => '628123456', + 'mobile' => ['621123456', '651123456', '661123456', '671123456', '691123456'], 'tollfree' => '80012345', 'premium' => '90012345', 'shared' => '80112345',