mirror of
https://github.com/plankanban/planka.git
synced 2025-08-04 04:55:25 +02:00
ref: Refactoring
This commit is contained in:
parent
9a421b0b8a
commit
c29962174e
19 changed files with 234 additions and 247 deletions
7
server/utils/formatters.js
Normal file
7
server/utils/formatters.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
const MENTIONS_REGEX = /@\[(.*?)\]\(.*?\)/g;
|
||||
|
||||
const formatTextWithMentions = (text) => text.replace(MENTIONS_REGEX, '@$1');
|
||||
|
||||
module.exports = {
|
||||
formatTextWithMentions,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue