From ffa920e4b9594f201756f9eeca542e5dfb8576d1 Mon Sep 17 00:00:00 2001 From: Jesse Jackson Date: Thu, 21 Jan 2021 19:09:07 -0600 Subject: Typo (#9221) --- std/encoding/csv_stringify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/encoding/csv_stringify.ts') 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}`; -- cgit v1.2.3