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

Commit

Permalink
Fix BR PhoneNumber Regexp
Browse files Browse the repository at this point in the history
Brazilian mobile numbers begin with an 9 before the area code.
  • Loading branch information
rwrz authored and michalbundyra committed Sep 22, 2019
1 parent c6c465a commit 2b54cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator/PhoneNumber/BR.php
Expand Up @@ -13,7 +13,7 @@
'national' => [
'general' => '/^[1-46-9]\\d{7,10}|5\\d{8,9}$/',
'fixed' => '/^1[1-9][2-5]\\d{7}|(?:[4689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}$/',
'mobile' => '/^1(?:1(?:5[347]|[6-8]\\d|9\\d{1,2})|[2-9][6-9]\\d)\\d{6}|(?:[4689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[6-9]\\d{7}$/',
'mobile' => '/^1(?:1(?:5[347]|[6-8]\\d|9\\d{1,2})|[2-9][6-9]\\d)\\d{6}|(?:[4689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])9[6-9]\\d{7}$/',
'tollfree' => '/^800\\d{6,7}$/',
'premium' => '/^[359]00\\d{6,7}$/',
'shared' => '/^[34]00\\d{5}$/',
Expand Down

0 comments on commit 2b54cef

Please sign in to comment.