forked from sheetjs/sheetjs
version bump 0.2.4: CSV unwind JS escaping
This commit is contained in:
parent
e3301e1ff1
commit
d54b9eaa71
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xlsx",
|
||||
"version": "0.2.3",
|
||||
"version": "0.2.4",
|
||||
"author": "Niggler",
|
||||
"description": "(one day) a full-featured XLSX parser and writer. For now, primitive parser",
|
||||
"keywords": [
|
||||
|
2
xlsx.js
2
xlsx.js
@ -906,7 +906,7 @@ function sheet_to_csv(sheet) {
|
||||
var row = [];
|
||||
for(var C = r.s.c; C <= r.e.c; ++C) {
|
||||
var val = sheet[utils.encode_cell({c:C,r:R})];
|
||||
row.push(val ? stringify(val) : "");
|
||||
row.push(val ? stringify(val).replace(/\\r\\n/g,"\n").replace(/\\t/g,"\t").replace(/\\\\/g,"\\") : "");
|
||||
}
|
||||
out += row.join(",") + "\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user