From 73d8490b019e97773b561ea59bc85cae8397be68 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 26 Jul 2026 16:16:18 +0200 Subject: [PATCH] fix ViewIcons --- src/plugins/viewIcons/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/viewIcons/index.tsx b/src/plugins/viewIcons/index.tsx index 42c9aaeff..37f90b74e 100644 --- a/src/plugins/viewIcons/index.tsx +++ b/src/plugins/viewIcons/index.tsx @@ -215,8 +215,8 @@ export default definePlugin({ { find: "return{avatarProps:{", replacement: { - match: /(?<=avatarProps:(\i),eventHandlers:\i.{0,100}?)return null==(?<=onOpenAvatar:(\i).+?)/, - replace: "$2&&=$self.openAvatar.bind(undefined,$1.src);$&", + match: /(?<=onClick:.{0,30}?)null!=(\i)(?=.{0,200}children:.{0,50}...(\i),imageClassName:)/, + replace: "null!=($1&&=$self.openAvatar.bind(undefined,$2.src))", } }, // Banners