You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
Scientific Notation values such as 3.6379788070917e-12 are not considered numeric by isNumeric
This may be best as part of the no symbols option, to allow 'e' if no_symbols is false.
Examples
If applicable, add screenshots to help explain your problem. const value = Number('3.6379788070917e-12'); isNumeric(value.toString());
returns false, but should return true.
Reproductions
If applicable, provide a reproduction on platforms like runkit
Describe the bug
A clear and concise description of what the bug is.
Scientific Notation values such as 3.6379788070917e-12 are not considered numeric by
isNumeric
This may be best as part of the no symbols option, to allow 'e' if no_symbols is false.
Examples
If applicable, add screenshots to help explain your problem.
const value = Number('3.6379788070917e-12'); isNumeric(value.toString());
returns false, but should return true.
Reproductions
If applicable, provide a reproduction on platforms like runkit
Additional context
Validator.js version:
Node.js version:
OS platform: [windows, linux, macOS, etc]
The text was updated successfully, but these errors were encountered: