Improvements for patches and misc stuff (#582)
This commit is contained in:
parent
7322c3af04
commit
40395d562a
15 changed files with 324 additions and 282 deletions
|
|
@ -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)`
|
||||
}
|
||||
}],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue