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
I have encountered an issue with version 5.4.1 when parsing CSV headers. It seems that headers are being incorrectly parsed and appended with "_x".
To reproduce the issue, go to https://www.papaparse.com/demo, check the "Header row" box and parse the following string:
"foo,dog","foo,cat"
Inspecting the results > meta > fields property shows us the following array:
fields: [ "foo,dog", 'foo_1,cat"' ]
The 2 error messages are:
message: "Trailing quote on quoted field is malformed" message: "Quoted field unterminated"
It seems that commas within the headers leads to the parser believing there duplicate header fields? This problem does not occur if the header: true option is omitted from the config.
The text was updated successfully, but these errors were encountered:
I have encountered an issue with version 5.4.1 when parsing CSV headers. It seems that headers are being incorrectly parsed and appended with "_x".
To reproduce the issue, go to https://www.papaparse.com/demo, check the "Header row" box and parse the following string:
"foo,dog","foo,cat"
Inspecting the
results > meta > fields
property shows us the following array:fields: [ "foo,dog", 'foo_1,cat"' ]
The 2 error messages are:
message: "Trailing quote on quoted field is malformed"
message: "Quoted field unterminated"
It seems that commas within the headers leads to the parser believing there duplicate header fields? This problem does not occur if the
header: true
option is omitted from the config.The text was updated successfully, but these errors were encountered: