mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43: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) {
|
export function sqlLikeEscape(s: string) {
|
||||||
return s.replace(/([%_])/g, "\\$1");
|
return s.replace(/([%_\\])/g, "\\$1");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user