Fix auto-complete username when creating new cards (addCardForm)

This commit is contained in:
Ben0it-T 2022-01-02 17:22:56 +01:00
parent 2ac5f0b2d7
commit e176410b54

View file

@ -336,7 +336,7 @@ BlazeComponent.extendComponent({
[
// User mentions
{
match: /\B@([\w.]*)$/,
match: /\B@([\w.-]*)$/,
search(term, callback) {
const currentBoard = Boards.findOne(Session.get('currentBoard'));
callback(
@ -347,6 +347,9 @@ BlazeComponent.extendComponent({
);
},
template(user) {
if (user.profile && user.profile.fullname) {
return (user.username + " (" + user.profile.fullname + ")");
}
return user.username;
},
replace(user) {