Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add scientific notation support to isNumeric validator
- Updated the `isNumeric` function to handle scientific notation values. - Modified the regular expression to account for both positive and negative exponents, using `e` or `E`. - Introduced an option to handle locales with different decimal separators. - Preserved backward compatibility by ensuring that the `no_symbols` option continues to function correctly. - This change ensures that inputs like `1e5`, `1.23E-5`, and other variations of scientific notation are now validated properly.
- Loading branch information