aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/whoReacted.tsx
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-08 00:11:59 -0300
committerGitHub <noreply@github.com>2023-03-08 00:11:59 -0300
commit40395d562aeadaeaa88c5bc106797ea5a4ee51e4 (patch)
treef5e96be8b32a670bcd5fe86d41ef5c47c6ee3b44 /src/plugins/whoReacted.tsx
parent7322c3af047489e122b59b01825ba5473dc96a62 (diff)
downloadVencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.tar.gz
Vencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.tar.bz2
Vencord-40395d562aeadaeaa88c5bc106797ea5a4ee51e4.zip
Improvements for patches and misc stuff (#582)
Diffstat (limited to 'src/plugins/whoReacted.tsx')
-rw-r--r--src/plugins/whoReacted.tsx4
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)`
}
}],