catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript

Home Page:https://catamphetamine.gitlab.io/libphonenumber-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Could we know why the phone number is not possible?

remi-blaise opened this issue · comments

Hi!

It would be great to be able to retrieve the reason why the function isPossible() fails.
Is phone number too short, too long for the country, ...

Let me know if it is possible or planned to be added to the library.

Thank you for your time,
Remi

The isPossible() function only checks number length, as stated in the readme.

Yeah I know that, I was advocating for a new feature.

Yeah I know that, I was advocating for a new feature.

Read the text from link I've provided.
It should be self-explanatory.

@remi-blaise Oh, you wanted to know whether it's short or long.

You are amazing, great feature, thanks!

I used the feature in my app, it works great!