From 234bd66fade8e44aa5b381cc8cc53d6c1b1aef4d Mon Sep 17 00:00:00 2001 From: Julian Mills Date: Thu, 25 Apr 2024 12:18:18 +0100 Subject: [PATCH] fix: escape backticks in table names fixes #170 --- src/util/helpers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/helpers.tsx b/src/util/helpers.tsx index d53479c4..74a7bdfd 100644 --- a/src/util/helpers.tsx +++ b/src/util/helpers.tsx @@ -305,7 +305,7 @@ export function tryParseParams(paramString: string) { * @returns The escaped value */ export function tb(value: string) { - return `\`${value}\``; + return `\`${value.replaceAll('`', '\\`')}\``; } /**