From b8bc24d167f2e19482d9dc6d367876c361abf4ea Mon Sep 17 00:00:00 2001 From: Anh Hong Date: Fri, 11 Dec 2020 02:45:45 +0700 Subject: chore: fixed various misspellings and other typos (#8691) --- 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 4c5f8c816..c968820dd 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 performant here? If so, how to dynamically create? + // Is regex.test more performance 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