-
Notifications
You must be signed in to change notification settings - Fork 51
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
isValidPhoneNumber throws exception instead of returning false #15
Comments
Yes, you are right. This function should never throw an exception, but only return the boolean value. If you could create a PR for it, I would appreciate it a lot! |
Thanks! PR in #18 |
Hi @emostar, there is a similar issue for |
Yeah I think |
When I passed "+1" to
isValidPhoneNumber
, it throws the following exception:isn't the point to return
false
when it's not a phone number?I'm planning on adding a try catch block around this function, happy to submit a PR if approved, does that make sense?
The text was updated successfully, but these errors were encountered: