1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-30 01:14:37 +02:00

Fix code scanning alert no. 28: Incomplete string escaping or encoding (MisskeyIO#800)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
あわわわとーにゅ
2024-11-08 15:49:35 +09:00
committed by GitHub
parent 729ad19c3a
commit 443335c662

View File

@@ -4,5 +4,5 @@
*/
export function sqlLikeEscape(s: string) {
return s.replace(/([%_])/g, '\\$1');
return s.replace(/([\\%_])/g, '\\$1');
}