-
-
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 #1671
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5908,12 +5908,15 @@ describe('Validators', () => { | |
'+55 (15) 97661234', | ||
'55 (17) 96332-2155', | ||
'55 (17) 6332-2155', | ||
'55 (11) 910007890', | ||
'55 15 976612345', | ||
'55 15 75661234', | ||
'+5512984567890', | ||
'+551283456789', | ||
'+5511910007890', | ||
'5512984567890', | ||
'551283456789', | ||
'5511910007890', | ||
'015994569878', | ||
'01593456987', | ||
'022995678947', | ||
|
@@ -5927,6 +5930,7 @@ describe('Validators', () => { | |
'(22) 999567894', | ||
'(22) 99956-7894', | ||
'(11) 94123-4567', | ||
'(11) 91000-7890', | ||
], | ||
invalid: [ | ||
'0819876543', | ||
|
@@ -5935,12 +5939,12 @@ describe('Validators', () => { | |
'5501599623874', | ||
'+55012962308', | ||
'+55 015 1234-3214', | ||
'+55 11 91431-4567', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why were these removed, did you introduce a regression? I can't see it from the code change... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @profnandaa. I've removed because the previous rule was blocking numbers starting with 1 after 9 and those are valid brazilian numbers, so I've replaced for invalid numbers starting with 0 after 9. In this PR from last year it was added, but they aren't invalid numbers. |
||
'+55 (11) 91431-4567', | ||
'+551191431-4567', | ||
'5511914314567', | ||
'5511912345678', | ||
'(11) 91431-4567', | ||
'+55 11 90431-4567', | ||
'+55 (11) 90431-4567', | ||
'+551190431-4567', | ||
'5511904314567', | ||
'5511902345678', | ||
'(11) 90431-4567', | ||
], | ||
}, | ||
{ | ||
|
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.
This seems to be heavy redoxable, it was also before this PR, however.