Numbers without a leading plus are considered invalid.
See original GitHub issuePassing a number like 18772155230
into isValidNumberCustom('18772155230', 'US', <US-only metadata>)
, the function returns false
even though Google’s library will indicate that it’s valid.
https://rawgit.com/googlei18n/libphonenumber/master/javascript/i18n/phonenumbers/demo-compiled.html
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
What is the reason if we call someone then shows that ... - Quora
“The dialed number is not valid” simply means that the number you dialed is either not registered with any mobile/telephone operator in your...
Read more >4.3. Validate International Phone Numbers - O'Reilly
Problem. You want to validate international phone numbers. The numbers should start with a plus sign, followed by the country code and national...
Read more >Positive and Negative Numbers | SkillsYouNeed
Standard numbers, anything greater than zero, are described as 'positive' numbers. We don't put a plus sign (+) in front of them because...
Read more >Unary plus (+) - JavaScript - MDN Web Docs
The unary plus (+) operator precedes its operand and evaluates to its operand but attempts to convert it into a number, if it...
Read more >What is E.164? - Twilio
E.164 numbers are formatted [+] [country code] [subscriber number including ... However, this will also match numbers that are not a valid phone...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ouch, you got me. The recent refactor added
possibleLengths
property and I didn’t think about backwards-compatibility. It’s true that some users generated metadata with the old version and don’t re-generate metadata upon publishing the project. Maybe I should add some backwards compatibility.(added backwards compatibility)