summaryrefslogtreecommitdiff
path: root/std/encoding/csv_stringify.ts
diff options
context:
space:
mode:
authorAnh Hong <hong4rc@gmail.com>2020-12-11 02:45:45 +0700
committerGitHub <noreply@github.com>2020-12-11 06:45:45 +1100
commitb8bc24d167f2e19482d9dc6d367876c361abf4ea (patch)
tree5e46858514914eed698d1c941fe8593547e93ed4 /std/encoding/csv_stringify.ts
parentfd9b0202c1bb0e83183fd0a53d8b1303612a5e31 (diff)
chore: fixed various misspellings and other typos (#8691)
Diffstat (limited to 'std/encoding/csv_stringify.ts')
-rw-r--r--std/encoding/csv_stringify.ts2
1 files changed, 1 insertions, 1 deletions
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}`;