diff --git a/src/misc/safe-for-sql.ts b/src/misc/safe-for-sql.ts index 7a57fabdf..02eb7f0a2 100644 --- a/src/misc/safe-for-sql.ts +++ b/src/misc/safe-for-sql.ts @@ -1,3 +1,3 @@ export function safeForSql(text: string): boolean { - return /[\0\x08\x09\x1a\n\r"'\\\%]/g.test(text); + return !/[\0\x08\x09\x1a\n\r"'\\\%]/g.test(text); }