diff --git a/packages/backend/src/misc/sql-like-escape.ts b/packages/backend/src/misc/sql-like-escape.ts index 453947d6e..0dd477ad2 100644 --- a/packages/backend/src/misc/sql-like-escape.ts +++ b/packages/backend/src/misc/sql-like-escape.ts @@ -1,3 +1,3 @@ export function sqlLikeEscape(s: string) { - return s.replace(/([%_])/g, "\\$1"); + return s.replace(/([%_\\])/g, "\\$1"); }