diff options
-rw-r--r-- | std/encoding/csv_stringify.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/encoding/csv_stringify.ts b/std/encoding/csv_stringify.ts index 758609734..921631d37 100644 --- a/std/encoding/csv_stringify.ts +++ b/std/encoding/csv_stringify.ts @@ -17,7 +17,7 @@ function getEscapedString(value: unknown, sep: string): string { if (typeof value === "object") str = JSON.stringify(value); else str = String(value); - // Is regex.test more performance here? If so, how to dynamically create? + // Is regex.test more performant here? If so, how to dynamically create? // https://stackoverflow.com/questions/3561493/ if (str.includes(sep) || str.includes(NEWLINE) || str.includes(QUOTE)) { return `${QUOTE}${str.replaceAll(QUOTE, `${QUOTE}${QUOTE}`)}${QUOTE}`; |