Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/120' into develop
Browse files Browse the repository at this point in the history
Forward port #120
  • Loading branch information
michalbundyra committed Sep 25, 2019
2 parents 60362b7 + e4df93e commit 7df7a7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/PhoneNumber/LU.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}$/',
Expand Down
2 changes: 1 addition & 1 deletion test/Validator/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7df7a7f

Please sign in to comment.