mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
(partially) cherry-picked from misskey/10e526b
fix: Escape SQL LIKE * SQL LIKE escape * CHANGELOG
This commit is contained in:
parent
b3fff542ba
commit
a23b4a4b36
3
packages/backend/src/misc/sql-like-escape.ts
Normal file
3
packages/backend/src/misc/sql-like-escape.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function sqlLikeEscape(s: string) {
|
||||
return s.replace(/([%_])/g, '\\$1');
|
||||
}
|
Loading…
Reference in New Issue
Block a user