validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

added-53 and 25 to be valid ghana cell phone first 2 digits after dialin…

Open ubanitc opened this issue 1 year ago • 2 comments

feat(isMobilePhone): Adds 53 and 25 to to valid ghana cell phone first 2 digits after dialing code

Currently ghana phone numbers have 53 and 25 as the numbers starting their phone numbers. and when these numbers are inputted it throws an error saying that they are invalid. when in fact they are valid phone numbers. this PR is supposed to fix that and add the new numbers

for example: +233593112756 gets validated. but doesn't +233533830853

Checklist

  • [x] PR contains only changes related; no stray files, etc. -checked
  • [ ] README updated (where applicable)
  • [x] Tests written (where applicable) -checked
  • [ ] References provided in PR (where applicable)

ubanitc avatar May 02 '24 12:05 ubanitc

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (83d6ffd) to head (f70dc70). Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2393   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          108       108           
  Lines         2482      2482           
  Branches       627       627           
=========================================
  Hits          2482      2482           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 02 '24 13:05 codecov[bot]

@ubanitc can you also include the source?

rubiin avatar May 09 '24 07:05 rubiin