mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
chore: fixed various misspellings and other typos (#8691)
This commit is contained in:
parent
fd9b0202c1
commit
b8bc24d167
27 changed files with 67 additions and 67 deletions
|
@ -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}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue