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

Commit

Permalink
Fix French PhoneNumber regexp
Browse files Browse the repository at this point in the history
Fixes #85
  • Loading branch information
michalbundyra committed Sep 23, 2019
1 parent 1f8fd76 commit 88f3dbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Validator/PhoneNumber/FR.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'national' => [
'general' => '/^[124-9]\\d{8}|3\\d{3}(?:\\d{5})?$/',
'fixed' => '/^[1-5]\\d{8}$/',
'mobile' => '/^(?:[6-7]\\d{8}|7[5-9]\\d{7})$/',
'mobile' => '/^(?:700\\d{6}|6\\d{8}|7[3-9]\\d{7})$/',
'tollfree' => '/^80\\d{7}$/',
'premium' => '/^(?:3\\d{3}|89[1-37-9])\\d{6}$/',
'shared' => '/^8(?:1[019]|2[0156]|84|90)\\d{6}$/',
Expand Down
2 changes: 1 addition & 1 deletion test/Validator/PhoneNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ class PhoneNumberTest extends TestCase
'patterns' => [
'example' => [
'fixed' => '123456789',
'mobile' => ['612345678', '712345678',],
'mobile' => ['612345678', '700123456', '734567890'],
'tollfree' => '801234567',
'premium' => ['3123123456', '891123456', '897123456',],
'shared' => ['810123456', '820123456',],
Expand Down

0 comments on commit 88f3dbe

Please sign in to comment.