From a14a41b27c8c1d690dae08250fd5008bbb99a99d Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 5 May 2023 12:49:34 +0900 Subject: [PATCH] oops --- packages/backend/src/misc/check-word-mute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/misc/check-word-mute.ts b/packages/backend/src/misc/check-word-mute.ts index c561c7e0f..8874a4a05 100644 --- a/packages/backend/src/misc/check-word-mute.ts +++ b/packages/backend/src/misc/check-word-mute.ts @@ -42,7 +42,7 @@ function checkWordMute( } try { - if (new RegExp(regexp[1], regexp[2]).test(text)) return true; + if (new RE2(regexp[1], regexp[2]).test(text)) return true; } catch (err) { // This should never happen due to input sanitisation. }