fixed a glitch in the List >> asCSV() encoder

pull/89/head
jmoenig 2019-01-08 17:12:24 +01:00
rodzic 4db5536eff
commit 600ec731d2
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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 = ['\"'];