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
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 treat Baz" as duplicate header, and append _1 to the second instance of it in headerMap. 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...
import Papa from 'papaparse'
console.log(Papa.parse('Foo,"Bar, Baz","Spam, Baz",Some,Other,Headers\n1,2,3,4,5,6', { header: true }))
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: