MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / isMentionCharacter

Function isMentionCharacter

apps/web/ui/MessageForm/index.tsx:62–64  ·  view source on GitHub ↗
(character: string)

Source from the content-addressed store, hash-verified

60}
61
62function isMentionCharacter(character: string) {
63 return character === '@' || character === '!';
64}
65
66function getMentionIndex(text: string) {
67 const index1 = text.lastIndexOf('!');

Callers 2

isMentionModeFunction · 0.85
getMentionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected