Open alliefitter opened 7 months ago
This describes my issue as well. Can reproduce on the demo site. Should be noted that headers: true
must be set.
My test snippet:
"Enum 1 (A, B, Other)","Enum 2 (C, D, Other)"
A,Other
Adjusting the second instance of Other
to anything else resolves the errors listed.
I think I have the same issue https://github.com/mholt/PapaParse/issues/1055
any way to fix?
I think I have the same issue #1055
any way to fix?
We control the template we're parsing, so we just removed the duplicate strings in the headers. Alternatively, you could do headers: false
but might change your logic for the rest of your processing.
I think I have the same issue #1055 any way to fix?
We control the template we're parsing, so we just removed the duplicate strings in the headers. Alternatively, you could do
headers: false
but might change your logic for the rest of your processing.
i don't understand why this is happening, it should take the value from pipe to pipe regarldess of mismatched quotation marks. I need headers, so I cannot disable them, but It looks like a basic feature. Maybe I can escape the " somehow?
This is a pretty weird corner case, so let me know if y'all need more detail. Given a sheet with headers named
"Bar, Baz"
and"Spam, Baz"
, after splitting the header row on,
, Papa will treatBaz"
as duplicate header, and append_1
to the second instance of it inheaderMap
. Then while seemingly attempting to remediate duplicates, the second header value will become"Spam, Baz"_1
, and seems to break parsing fields later on. The following scirpt...... will print...
I was going to submit a PR, but the code is a bit difficult to follow. If this will take some time for y'all to get to, just comment here, and I can spend some time on a PR.