fix for isMobilePhone pt-BR locale by jhcaiafa · Pull Request #1964 · validatorjs/validator.js
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters