mirror of
https://github.com/plankanban/planka.git
synced 2025-12-24 17:25:00 +03:00
5 lines
188 B
JavaScript
5 lines
188 B
JavaScript
const MENTIONS_REGEX = /@\[(.*?)\]\(.*?\)/g;
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export const formatTextWithMentions = (text) => text.replace(MENTIONS_REGEX, '@$1');
|