Skip to content
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

feat: Add scientific notation support to isNumeric validator #2466

Closed

Commits on Oct 1, 2024

  1. 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 the no_symbols option continues to function correctly.
    - This change validates inputs like 1e5, 1.23E-5, and other variations of scientific notation.
    VivekHalder committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    205834d View commit details
    Browse the repository at this point in the history
  2. fix(isNumeric): resolve ESLint template literal spacing issues

    - Removed unexpected spaces inside template literals in the isNumeric function.
    - This fix addresses ESLint errors related to the `template-curly-spacing` rule, ensuring code style consistency.
    - The changes allow the code to pass linting checks, improving overall code quality.
    VivekHalder committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    2a7e46a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce77f75 View commit details
    Browse the repository at this point in the history