Skip to content

Comments

fixes #2430 - scientific notation support#2488

Open
OlaOluwalekan wants to merge 1 commit intovalidatorjs:masterfrom
OlaOluwalekan:fix/scientific-notation-numerical
Open

fixes #2430 - scientific notation support#2488
OlaOluwalekan wants to merge 1 commit intovalidatorjs:masterfrom
OlaOluwalekan:fix/scientific-notation-numerical

Conversation

@OlaOluwalekan
Copy link

Fixes isNumeric Validator

I have updated the isNumeric function in "src/lib/isNumeric.js". I have included a more robust regex to handle large numbers solving the error associated with the scientific notation.

File changed
file

Checklist

  • PR contains only changes related; no stray files, etc. The only file updated is "src/lib/isNumeric.js"
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

Copy link
Member

@WikiRik WikiRik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please undo your own formatter changes and add tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants