feat(isMobilePhone): add en-BW locale by mgndolan · Pull Request #1771 · validatorjs/validator.js

added 3 commits

October 10, 2021 13:47
Included the new case for Botswana (en-BW)
Added some test cases to check length for the phone number & area code pattern.

@mgndolan mgndolan changed the title Fixed mobile phone validation for en-BW feat: (isMobilePhone) Fixed mobile phone validation for en-BW

Oct 11, 2021

@mgndolan mgndolan changed the title feat: (isMobilePhone) Fixed mobile phone validation for en-BW feat: (isMobilePhone) Added mobile phone validation for en-BW

Oct 11, 2021

tux-tn

Fixed the pattern for Botswana mobile phone numbers and edited the test cases. I followed the convention from Table 8 of the national numbering plan document and the mobile number pattern on the Wiki page.
Oops! Looks like the file didn't update with some of my modified test cases - my apologies!

@profnandaa profnandaa changed the title feat: (isMobilePhone) Added mobile phone validation for en-BW feat(isMobilePhone): add en-BW locale

Oct 31, 2021