Skip to content

Commit

Permalink
fix(vcDoubleClick): add required parentheses (Vendicated#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
D3SOX committed Oct 25, 2022
1 parent d6fe937 commit e06ba68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/vcDoubleClick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default definePlugin({
find: 'className:"channelMention",iconType:(',
replacement: {
match: /onClick:(.{1,3}),/,
replace: "onClick:(_vcEv)=>_vcEv.detail>=2||_vcEv.target.className.includes('MentionText')&&($1)(),",
replace: "onClick:(_vcEv)=>(_vcEv.detail>=2||_vcEv.target.className.includes('MentionText'))&&($1)(),",
}
}
],
Expand Down

0 comments on commit e06ba68

Please sign in to comment.