mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 07:25:12 +00:00
escape \ character in sqlLikeEscape
This commit is contained in:
parent
da764d3541
commit
189c26aa25
1 changed files with 1 additions and 1 deletions
|
@ -4,5 +4,5 @@
|
|||
*/
|
||||
|
||||
export function sqlLikeEscape(s: string) {
|
||||
return s.replace(/([%_])/g, '\\$1');
|
||||
return s.replace(/([%_\\])/g, '\\$1');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue