[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.
Published libphonenumber-js@1.9.26
.
https://gitlab.com/catamphetamine/libphonenumber-js#validatephonenumberlengthinput-string-string
You are amazing, great feature, thanks!
I used the feature in my app, it works great!