Validate true if using 00 instead of +
See original GitHub issueIt 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:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top 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 >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
Because, users! 😉 I guess some just have that preference, what can I say 😃
But that sounds great, I’ll check it out
Why are your users inputting their phone number with 00 prefix?