-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add noSymbols option to isNumeric #848
Conversation
This is virtually the same as
Have you tried |
My specific use case for this was TOTP two factor authentication codes. I didn't realize that However, TOTP codes cannot contain any signs/symbols. One example that is possible with the Empty strings are also possible, but I figured it would be best to require the developer to use the already existing |
Thanks for the PR 😄 I'm going to change it to snake case ( |
This accepts strings with "+" and "." etc, even when no_symbols is true. Is there a syntax mistake I'm making or is it a bug? |
@razakhawaja - can give an example of the |
An example was "+33333333333". |
This seems to be broken in current versions. |
Split #847 per request of @profnandaa.