mirror of
https://github.com/plankanban/planka.git
synced 2025-07-27 09:09:46 +02:00
7 lines
173 B
JavaScript
7 lines
173 B
JavaScript
const MENTIONS_REGEX = /@\[(.*?)\]\(.*?\)/g;
|
|
|
|
const formatTextWithMentions = (text) => text.replace(MENTIONS_REGEX, '@$1');
|
|
|
|
module.exports = {
|
|
formatTextWithMentions,
|
|
};
|