feat: Add ability to mention users in comments (#1162)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
const MENTIONS_REGEX = /@\[(.*?)\]\(.*?\)/g;
|
||||
|
||||
const formatTextWithMentions = (text) => text.replace(MENTIONS_REGEX, '@$1');
|
||||
|
||||
module.exports = {
|
||||
formatTextWithMentions,
|
||||
};
|
||||
Reference in New Issue
Block a user