Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Numbers without a leading plus are considered invalid.

See original GitHub issue

Passing 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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

catamphetaminecommented, Feb 9, 2018

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.

catamphetaminecommented, Feb 11, 2018

(added backwards compatibility)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found