Skip to content

Commit

Permalink
fix: escape backticks in table names
Browse files Browse the repository at this point in the history
fixes #170
  • Loading branch information
macjuul committed Apr 25, 2024
1 parent 0c0c5c7 commit 234bd66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export function tryParseParams(paramString: string) {
* @returns The escaped value
*/
export function tb(value: string) {
return `\`${value}\``;
return `\`${value.replaceAll('`', '\\`')}\``;
}

/**
Expand Down

0 comments on commit 234bd66

Please sign in to comment.