Skip to content

Conversation

@mrodrig
Copy link
Owner

@mrodrig mrodrig commented Jun 6, 2020

Background Information

I have...

  • added at least one test to verify the failure condition is fixed.
  • verified the tests are passing.

mrodrig added 2 commits June 6, 2020 16:59
Since JSON.parse "interprets" some values, such as 39e1804 which is converted to Infinity. However, this isn't desirable since we want to return as close to the original value as possible. This commit adds some minor logic to verify that JSON.parse didn't determine the value is Infinity or -Infinity before setting the value in the returned JSON. If this is the case, the value is simply returned as the same string that's contained in the CSV.

Fixes #149
@mrodrig mrodrig added the csv2json CSV to JSON label Jun 6, 2020
@mrodrig mrodrig added this to the 3.7.1 milestone Jun 6, 2020
@mrodrig mrodrig merged commit 84c13aa into master Jun 6, 2020
@mrodrig mrodrig deleted the fix-149 branch June 6, 2020 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

csv2json CSV to JSON

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants