1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 07:39:44 +02:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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,
};