We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2794a commit 1d58d77Copy full SHA for 1d58d77
src/utils/escape.ts
@@ -17,8 +17,6 @@
17
* limitations under the License.
18
*/
19
20
-const ESCAPE_SYMBOL_REGEX = /`/g;
21
-
22
/** These names must be escaped for variables */
23
const RESERVED_VAR_NAMES = new Set(["contains", "in", "where", "is"]);
24
@@ -61,7 +59,7 @@ function escapeIfNeeded(str: string): string {
61
59
62
60
function escapeString(str: string): string {
63
const normalizedStr = normalizeString(str);
64
- const escapedStr = normalizedStr.replaceAll(ESCAPE_SYMBOL_REGEX, "``");
+ const escapedStr = normalizedStr.replaceAll("`", "``");
65
return `\`${escapedStr}\``;
66
}
67
0 commit comments