diff --git a/services/utils/csvParser.js b/services/utils/csvParser.js index 8853d30..2514a6a 100644 --- a/services/utils/csvParser.js +++ b/services/utils/csvParser.js @@ -39,7 +39,9 @@ function jsonToCsv(data, headers) { if ( typeof element === "string" && - (element.includes(",") || element.includes('"')) + (element.includes("\n") || + element.includes(",") || + element.includes('"')) ) { return `"${escapeQuote(element)}"`; }