-
-
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
isNumeric
doesn't support scientific notation
#2430
Comments
@benada002 To handle the scientific notation you have to edit isNumeric.js file or you can copy the below code and paste it in that file where I have added the regex function in return statement
|
@SuvitsonHarrese you can make a pr if you like |
@benada002 @SuvitsonHarrese @rubiin #2447 I had made a PR related to this issue. Could you please review it? 🙏 |
Describe the bug
👋 Not sure if you consider this a 🐛, but I just noticed that
isNumeric
doesn't support scientific notation. Eg. this works perfectly fine (returnstrue
):But this returns
false
, even through it's a valid numberExamples
Reproductions
https://runkit.com/embed/xsw1bpnhjcgs
The text was updated successfully, but these errors were encountered: