feat: Add ability to mention users in comments (#1162)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
const MENTIONS_REGEX = /@\[(.*?)\]\(.*?\)/g;
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const formatTextWithMentions = (text) => text.replace(MENTIONS_REGEX, '@$1');
|
||||
Reference in New Issue
Block a user