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

Number accessors #144

Merged
merged 3 commits into from
May 16, 2021
Merged

Conversation

jerome-fox
Copy link
Contributor

The number accessors are too permissive.
The parseInt and parseFloat functions allow strings beginning with numbers.

The solution here is to check if the parsed value is stringify, it should be the same as the input value.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 219d0b0 on jerome-fox:number_accessors into e5884f4 on evanshortiss:master.

@evanshortiss evanshortiss merged commit 7137d19 into evanshortiss:master May 16, 2021
@jerome-fox jerome-fox deleted the number_accessors branch May 20, 2021 12:07
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.

3 participants