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

feat(isMobilePhone): add en-BW locale #1771

Closed
wants to merge 5 commits into from

Commits on Oct 10, 2021

  1. 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
    mgndolan committed Oct 10, 2021
    Configuration menu
    Copy the full SHA
    4cb177c View commit details
    Browse the repository at this point in the history
  2. Updated README.md to include en-BW

    Included the new case for Botswana (en-BW)
    mgndolan committed Oct 10, 2021
    Configuration menu
    Copy the full SHA
    5bd62c4 View commit details
    Browse the repository at this point in the history
  3. Added test cases for isMobilePhone en-BW

    Added some test cases to check length for the phone number & area code pattern.
    mgndolan committed Oct 10, 2021
    Configuration menu
    Copy the full SHA
    bb6f0ca View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2021

  1. 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.
    mgndolan committed Oct 23, 2021
    Configuration menu
    Copy the full SHA
    ff1e91e View commit details
    Browse the repository at this point in the history
  2. Update validators.js

    Oops! Looks like the file didn't update with some of my modified test cases - my apologies!
    mgndolan committed Oct 23, 2021
    Configuration menu
    Copy the full SHA
    b3ef463 View commit details
    Browse the repository at this point in the history