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])" } } ],