Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Fixup csv escapeCsvValue helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Allypost committed May 20, 2021
1 parent d8cd4fd commit 724c77d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/csv.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const escapeCsvValue =
(str) =>
String(str)
.replaceAll("\"", "\"\"")
.replaceAll("\n", "\t")
.replace(/"/gi, "\"\"")
.replace(/\n/gi, "\t")
;

export const encodeRow =
Expand Down

0 comments on commit 724c77d

Please sign in to comment.