feat: Add ability to mention users in comments (#1162)

This commit is contained in:
Roman Zavarnitsyn
2025-05-30 22:01:29 +02:00
committed by GitHub
parent eb2a3a2875
commit c0b0436851
20 changed files with 357 additions and 42 deletions

View File

@@ -0,0 +1,7 @@
const MENTIONS_REGEX = /@\[(.*?)\]\(.*?\)/g;
const formatTextWithMentions = (text) => text.replace(MENTIONS_REGEX, '@$1');
module.exports = {
formatTextWithMentions,
};