parseMentionedUsers

Function

Parses mentioned users

  • parseMentionedUsers(text: string) : string[]

Parameters

Parameter Type Default Notes
text Optional string ""

A string to parse mentioned users from

Returns

A unique collection of usernames parsed from the provided text

string[]

Function defined in discussions/src/utils/posts/parse-mentioned-users.ts:15