-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed mobile phone validation for pt-br #1407
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1407 +/- ##
==========================================
Coverage ? 100.00%
==========================================
Files ? 95
Lines ? 1248
Branches ? 0
==========================================
Hits ? 1248
Misses ? 0
Partials ? 0 Continue to review full report at Codecov.
|
Tanks bro |
@@ -5174,12 +5174,14 @@ describe('Validators', () => { | |||
{ | |||
locale: 'pt-BR', | |||
valid: [ | |||
'+55-12-996551215', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain this regression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brazilian numbers never use dashes between numbers.
@@ -5174,12 +5174,14 @@ describe('Validators', () => { | |||
{ | |||
locale: 'pt-BR', | |||
valid: [ | |||
'+55-12-996551215', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brazilian numbers never use dashes between numbers.
Changed RegExp for pt-br phone number validation, now supporting new numbers that start with 9 and are followed by 2, 3 or 4 (3 and 4 are more common, but 2 is also possible)