Skip to content

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

jhcaiafa added 2 commits May 10, 2022 14:53
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