(partially) cherry-picked from misskey/10e526b
fix: Escape SQL LIKE * SQL LIKE escape * CHANGELOG
This commit is contained in:
parent
27d1d96c9d
commit
9a3eb859bc
|
@ -0,0 +1,3 @@
|
|||
export function sqlLikeEscape(s: string) {
|
||||
return s.replace(/([%_])/g, '\\$1');
|
||||
}
|
Loading…
Reference in New Issue