Skip to content
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

Merged
merged 9 commits into from
Oct 21, 2020

Conversation

viniciushvsilva
Copy link
Contributor

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)

@codecov
Copy link

codecov bot commented Aug 14, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@926accc). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 926accc...c445691. Read the comment docs.

@lacort
Copy link

lacort commented Aug 14, 2020

Tanks bro

@@ -5174,12 +5174,14 @@ describe('Validators', () => {
{
locale: 'pt-BR',
valid: [
'+55-12-996551215',
Copy link
Member

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?

Copy link

@lunatupini lunatupini Oct 20, 2020

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.

@profnandaa
Copy link
Member

Thanks for your contrib!

/cc. @tux-tn @ezkemboi

@@ -5174,12 +5174,14 @@ describe('Validators', () => {
{
locale: 'pt-BR',
valid: [
'+55-12-996551215',
Copy link

@lunatupini lunatupini Oct 20, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants