From c4d2b4a8cd39fae7b1f453608d3cdc97a24f739d Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 18 Jan 2023 20:36:31 -0300 Subject: [PATCH] Fix message logger patch (#431) --- src/plugins/messageLogger/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx index e650dbbf6..50a6f5273 100644 --- a/src/plugins/messageLogger/index.tsx +++ b/src/plugins/messageLogger/index.tsx @@ -259,8 +259,8 @@ export default definePlugin({ replace: "$1,deleted=$2.attachment?.deleted," }, { - match: /(hiddenSpoilers:\w,className:)/, - replace: "$1 (deleted ? 'messageLogger-deleted-attachment ' : '') +" + match: /\["className","attachment","inlineMedia".+?className:/, + replace: "$& (deleted ? 'messageLogger-deleted-attachment ' : '') +" } ] },