mirror of
https://github.com/plankanban/planka.git
synced 2025-12-26 09:15:01 +03:00
feat: Add ability to mention users in comments (#1162)
This commit is contained in:
committed by
GitHub
parent
eb2a3a2875
commit
c0b0436851
4
client/src/utils/formatters.js
Normal file
4
client/src/utils/formatters.js
Normal file
@@ -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