mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-21 21:12:53 +09: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