Skip to content

Commit

Permalink
fix(vcDoubleClick): exclude text channel mentions (Vendicated#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
D3SOX committed Oct 25, 2022
1 parent 2f46b93 commit d6fe937
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&&($1)(),",
replace: "onClick:(_vcEv)=>_vcEv.detail>=2||_vcEv.target.className.includes('MentionText')&&($1)(),",
}
}
],
Expand Down

0 comments on commit d6fe937

Please sign in to comment.