mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-24 19:07:32 -07:00
[backend] Backslash needs to be escaped in sqlLikeEscape
This commit is contained in:
parent
cca23bf5d9
commit
b73a07011a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue