You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mapValues does not run for the first and final rows, leaving it as empty string. This is obviously happening because of https://github.com/mafintosh/csv-parser/blob/master/index.js#L182 simply inserting a this._empty value. Skipping mapValue for this value is not consistent with other columns.
The text was updated successfully, but these errors were encountered:
Expected Behavior
I expect all values to be sent through
mapValues
, so I can change e.g. empty strings tonull
.Actual Behavior
If the final column is empty, i.e. the final character on the line is
,
, then the last value is not sent throughmapValues
.How Do We Reproduce?
Save as index.js:
Run
node index.js
:mapValues
does not run for the first and final rows, leaving it as empty string. This is obviously happening because of https://github.com/mafintosh/csv-parser/blob/master/index.js#L182 simply inserting athis._empty
value. SkippingmapValue
for this value is not consistent with other columns.The text was updated successfully, but these errors were encountered: