mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
revert changes to csv parser
This commit is contained in:
parent
2c3fbb1467
commit
6af3c8c2a9
@ -200,9 +200,9 @@ function parse(csvIn, parseOptions) {
|
|||||||
if (!headers[i]) {
|
if (!headers[i]) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
quotedHeaders.push(quoteCell(headers[i], { quote, separator }))
|
quotedHeaders.push(quoteCell(headers[i], { quote, separator: ',' }))
|
||||||
}
|
}
|
||||||
finalResult.header = quotedHeaders.join(separator) // always quote headers and join with comma
|
finalResult.header = quotedHeaders.join(',') // always quote headers and join with comma
|
||||||
|
|
||||||
// output is an array of arrays [[],[],[]]
|
// output is an array of arrays [[],[],[]]
|
||||||
if (ouputArrays || headersOnly) {
|
if (ouputArrays || headersOnly) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user