mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
[backend] Backslash needs to be escaped in sqlLikeEscape
This commit is contained in:
parent
cca23bf5d9
commit
b73a07011a
@ -1,3 +1,3 @@
|
||||
export function sqlLikeEscape(s: string) {
|
||||
return s.replace(/([%_])/g, "\\$1");
|
||||
return s.replace(/([%_\\])/g, "\\$1");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user