-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Incorrect header detection in CSV parsing 5.4.1 #1007
Comments
Unfortunately this seems to be the case with all quoted duplicate headers: Results in:
Edit: |
Related to #998 |
augustmarowski
added a commit
to augustmarowski/PapaParse
that referenced
this issue
Jun 12, 2024
augustmarowski
added a commit
to augustmarowski/PapaParse
that referenced
this issue
Jun 12, 2024
And updated test to match the improved renaming logic.
mholt
pushed a commit
that referenced
this issue
Sep 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: