question-mark
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.

Validate true if using 00 instead of +

See original GitHub issue

It seems a lot of my users write their country prefix with 00 instead of + notation. I’ve now rebuilt the UI so they input country code in one box and the number in the other and validate the result myself so there’s no UX confusion, but I think it’d be natural if

+45 12345678 and 0045 12345678 both validated true as DK phone numbers

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jhalborgcommented, May 8, 2018

Why are your users inputting their phone number with 00 prefix?

Because, users! 😉 I guess some just have that preference, what can I say 😃

But that sounds great, I’ll check it out

1reaction
catamphetaminecommented, May 8, 2018

Why are your users inputting their phone number with 00 prefix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

In JavaScript, why is "0" equal to false, but when tested by 'if' it ...
When you do: if ("0") console.log("ha") , the string value is being tested. Any non-empty string is true , while an empty string...
Read more >
Type coercion rules - Ajv JSON schema validator
Coercion to integer is possible if the string is a valid number without fractional part ( data % 1 === 0 ). #...
Read more >
Time series / date functionality — pandas 1.5.2 documentation
As discussed in previous section, indexing a DatetimeIndex with a partial string depends on the “accuracy” of the period, in other words how...
Read more >
Restrict data input by using validation rules - Microsoft Support
Typically, you use a form validation rule instead of a field validation rule if the rule was specific only to that form and...
Read more >
Validation - Laravel - The PHP Framework For Web Artisans
It is most common to use the validate method available on all incoming HTTP ... validation rules may be specified as arrays of...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found