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

fix for isMobilePhone pt-BR locale #1964

Merged
merged 3 commits into from
Jul 19, 2022
Merged

Conversation

jhcaiafa
Copy link
Contributor

fix(isMobilePhone): pt-BR locale

  • correct regex for pt-br phone numbers

  • changed tests for pt-BR mobile phone number validation

  • Removed valid number from invalid list of pt-br phones

  • Numbers with 9 digits, second digit being 1-9

  • Updated tests to check on pt-br phone numbers starting with 9 and followed by 1-9

  • Updated tests to comply with new phone numbers

Fix regex for pt-BR, now accepting number 1 after number 9 for mobile phone numbers
valid and invalid test values updated due fix on isMobilePhone.js for pt-BR
@codecov
Copy link

codecov bot commented May 10, 2022

Codecov Report

Merging #1964 (356f055) into master (ed3d8a4) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #1964   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          104       104           
  Lines         2120      2120           
  Branches       475       475           
=========================================
  Hits          2120      2120           

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 ed3d8a4...356f055. Read the comment docs.

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

Successfully merging this pull request may close these issues.

2 participants