chore: fixed various misspellings and other typos (#8691)

This commit is contained in:
Anh Hong 2020-12-11 02:45:45 +07:00 committed by GitHub
parent fd9b0202c1
commit b8bc24d167
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 67 additions and 67 deletions

View file

@ -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}`;