diff options
Diffstat (limited to 'src/plugins/whoReacted.tsx')
-rw-r--r-- | src/plugins/whoReacted.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/whoReacted.tsx b/src/plugins/whoReacted.tsx index 8ab1c5f..4b1c828 100644 --- a/src/plugins/whoReacted.tsx +++ b/src/plugins/whoReacted.tsx @@ -93,8 +93,8 @@ export default definePlugin({ patches: [{ find: ",reactionRef:", replacement: { - match: /((.)=(.{1,3})\.hideCount)(,.+?reactionCount.+?\}\))/, - replace: "$1,whoReactedProps=$3$4,$2?null:$self.renderUsers(whoReactedProps)" + match: /(?<=(\i)=(\i)\.hideCount,)(.+?reactionCount.+?\}\))/, + replace: (_, hideCount, props, rest) => `whoReactedProps=${props},${rest},${hideCount}?null:$self.renderUsers(whoReactedProps)` } }], |