mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
User mentions now return @username (full name)
This commit is contained in:
parent
e176410b54
commit
a160b662ef
2 changed files with 14 additions and 5 deletions
|
@ -202,7 +202,7 @@ if (Meteor.isServer) {
|
|||
}
|
||||
return member;
|
||||
});
|
||||
const mentionRegex = /\B@(?:(?:"([\w.\s]*)")|([\w.]+))/gi; // including space in username
|
||||
const mentionRegex = /\B@(?:(?:"([\w.\s-]*)")|([\w.-]+))/gi; // including space in username
|
||||
let currentMention;
|
||||
while ((currentMention = mentionRegex.exec(comment)) !== null) {
|
||||
/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "[iI]gnored" }]*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue