You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added new condition for Botswana
New regex for Botswana numbers
Phone number information was found from the following sources:
- https://www.howtocallabroad.com/botswana/
- https://countrycode.org/botswana
Updated README.md to include en-BW
Included the new case for Botswana (en-BW)
Added test cases for isMobilePhone en-BW
Added some test cases to check length for the phone number & area code pattern.
Changed regex for BW
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.
Update validators.js
Oops! Looks like the file didn't update with some of my modified test cases - my apologies!
0 commit comments