From 0d7157dd20aee9e9776500b519385f7c4f0878bc Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 25 Oct 2023 19:59:20 +0200 Subject: [PATCH] Fix BetterNoteBox --- src/plugins/betterNotes/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/betterNotes/index.tsx b/src/plugins/betterNotes/index.tsx index 06c73550..7049a369 100644 --- a/src/plugins/betterNotes/index.tsx +++ b/src/plugins/betterNotes/index.tsx @@ -48,8 +48,8 @@ export default definePlugin({ { find: ".Messages.NOTE}", replacement: { - match: /(\i)\.hideNote\?null/, - replace: "$1.hideNote?$self.patchPadding($1)" + match: /(?<=return \i\?)null(?=:\(0,\i\.jsxs)/, + replace: "$self.patchPadding(arguments[0])" } } ],