MCPcopy Create free account
hub / github.com/CommE2E/comm / encodeChatMentionText

Function encodeChatMentionText

lib/shared/mention-utils.js:68–70  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

66const globalChatMentionRegex: RegExp = new RegExp(chatMentionRegexString, 'g');
67
68function encodeChatMentionText(text: string): string {
69 return text.replace(/]/g, '\\]');
70}
71
72function decodeChatMentionText(text: string): string {
73 return text.replace(/\\]/g, ']');

Callers 2

getRawChatMentionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected