[backend] Backslash needs to be escaped in sqlLikeEscape

This commit is contained in:
Laura Hausmann 2023-11-18 19:45:28 +01:00
parent cca23bf5d9
commit b73a07011a
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -1,3 +1,3 @@
export function sqlLikeEscape(s: string) {
return s.replace(/([%_])/g, "\\$1");
return s.replace(/([%_\\])/g, "\\$1");
}