From e06ba68c40c55feb010598e0b0c4482962cc658e Mon Sep 17 00:00:00 2001 From: Nico Date: Tue, 25 Oct 2022 18:15:21 +0200 Subject: [PATCH] fix(vcDoubleClick): add required parentheses (#160) --- src/plugins/vcDoubleClick.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts index e822db41..9c9503d3 100644 --- a/src/plugins/vcDoubleClick.ts +++ b/src/plugins/vcDoubleClick.ts @@ -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)(),", } } ],