This commit is contained in:
AllenFang
2019-04-27 14:58:36 +08:00
parent 0f37fae23d
commit 737922a5a4

View File

@@ -42,7 +42,7 @@ export const transform = (
cellContent = m.formatter(cellContent, row, rowIndex, m.formatExtraData);
}
if (m.type === String) {
return `"${cellContent}"`;
return `"${`${cellContent}`.replace(/"/g, '""')}"`;
}
return cellContent;
}).join(separator)).join('\n');