From e176410b54c72b8011d6193039816344e6f486ff Mon Sep 17 00:00:00 2001 From: Ben0it-T Date: Sun, 2 Jan 2022 17:22:56 +0100 Subject: [PATCH] Fix auto-complete username when creating new cards (addCardForm) --- client/components/lists/listBody.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 9b54f901e..3a368c344 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -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) {