diff --git a/lib/shared/mention-utils.js b/lib/shared/mention-utils.js --- a/lib/shared/mention-utils.js +++ b/lib/shared/mention-utils.js @@ -58,8 +58,9 @@ 'g', ); -const chatMentionRegexString = `^(? `@${decodeChatMentionText(match[3])}`, + ); +} + function extractUserMentionsFromText(text: string): string[] { const iterator = text.matchAll(userMentionsExtractionRegex); return [...iterator].map(matches => matches[2]); @@ -187,4 +195,5 @@ encodeChatMentionText, decodeChatMentionText, getRawChatMention, + renderChatMentionsWithAltText, };