1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-04 04:55:25 +02:00

ref: Refactoring

This commit is contained in:
Maksim Eltyshev 2025-05-30 21:57:15 +02:00
parent 9a421b0b8a
commit c29962174e
19 changed files with 234 additions and 247 deletions

View file

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