feat: add csv exporter
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function escapeCsvCell(value: string): string {
|
||||
if (/[",\n]/.test(value)) {
|
||||
return `"${value.replace(/"/g, "\"\"")}"`;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
Reference in New Issue
Block a user