We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a4ce16 commit 98b4717Copy full SHA for 98b4717
packages/backend/src/misc/sql-like-escape.ts
@@ -4,5 +4,5 @@
4
*/
5
6
export function sqlLikeEscape(s: string) {
7
- return s.replace(/([%_])/g, '\\$1');
+ return s.replace(/([\\%_])/g, '\\$1');
8
}
0 commit comments