diff --git a/CHANGELOG.md b/CHANGELOG.md index e66d062a..09df5caa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,8 @@ All notable changes to this project will be documented in this file, in reverse - [#119](https://github.com/zendframework/zend-i18n/pull/119) fixes Kosovan PhoneNumber validator. +- [#120](https://github.com/zendframework/zend-i18n/pull/120) fixes Luxembourgish PhoneNumber validator. + ## 2.9.0 - 2018-05-16 ### Added 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 8fcb69c7..764070b3 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',