CSV: `Array.from` which a more Unicode friendly form of `split()`.

snap7
Michael Ball 2021-12-11 14:11:22 -08:00
rodzic c67df0ad87
commit 665c2d6e3b
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -932,7 +932,7 @@ List.prototype.asCSV = function () {
return string; return string;
} }
cell = ['\"']; cell = ['\"'];
string.split('').forEach(letter => { Array.from(string).forEach(letter => {
cell.push(letter); cell.push(letter);
if (letter === '\"') { if (letter === '\"') {
cell.push(letter); cell.push(letter);