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

fix(toFloat): verify the string can be safely converted to a float #1227

Merged
merged 1 commit into from
Jan 9, 2020

Commits on Jan 7, 2020

  1. fix(toFloat): verify the string can be safely converted to a float (v…

    …alidatorjs#1226)
    
    This is needed because parseFloat('2020-01-06T14:31:00.135Z') will return 2020, even though it should return NaN. This fixes an issue checking isDivisibleBy('2020-01-06T14:31:00.135Z', 2).
    peterdemartini committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    a77f767 View commit details
    Browse the repository at this point in the history