Finds the mentions of the signed-in user in a chat message.
f
mentionsUser(): boolean
body: string,
username: string
Checks whether body @mentions username, ignoring case, with the pattern
the server uses for mention notifications, this instance's own host
included (localHandle). WSProvider uses it to pick the chime, and
ChatModal to highlight the message.
Usage
import * as mod from "src/utils/chat/text.ts";