From 600ec731d2feebd5e653f0e60e23b2f146272a8c Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 8 Jan 2019 17:12:24 +0100 Subject: [PATCH] fixed a glitch in the List >> asCSV() encoder --- src/lists.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lists.js b/src/lists.js index 1051e7f8..92272cab 100644 --- a/src/lists.js +++ b/src/lists.js @@ -412,7 +412,9 @@ List.prototype.asCSV = function () { function encodeCell(atomicValue) { var string = atomicValue.toString(), cell; - if (string.indexOf('\"') === -1 && (string.indexOf('\n') === -1)) { + if (string.indexOf('\"') === -1 && + (string.indexOf('\n') === -1) && + (string.indexOf('\,') === -1)) { return string; } cell = ['\"'];