diff options
author | Jonas Oberg <jonas@ffkp.se> | 2017-08-25 08:22:20 +0200 |
---|---|---|
committer | Jonas Oberg <jonas@ffkp.se> | 2017-08-25 08:22:20 +0200 |
commit | fe5ea60847ef26d470ffd346e666cb0f49b000c9 (patch) | |
tree | 56dfb202c5df87dca3300d5cc26ca5af10e7b3e3 /client/components/main | |
parent | 1b40c42cab9b6dd8b5248af92c7519b5b14cc525 (diff) | |
download | wekan-fe5ea60847ef26d470ffd346e666cb0f49b000c9.tar.gz wekan-fe5ea60847ef26d470ffd346e666cb0f49b000c9.tar.bz2 wekan-fe5ea60847ef26d470ffd346e666cb0f49b000c9.zip |
Usernames should be able to include dots (.)
Diffstat (limited to 'client/components/main')
-rwxr-xr-x | client/components/main/editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js index da15407a..5987b772 100755 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -25,7 +25,7 @@ Template.editor.onRendered(() => { // User mentions { - match: /\B@(\w*)$/, + match: /\B@([\w.]*)$/, search(term, callback) { const currentBoard = Boards.findOne(Session.get('currentBoard')); callback(currentBoard.activeMembers().map((member) => { @@ -60,7 +60,7 @@ Blaze.Template.registerHelper('mentions', new Template('mentions', function() { member.username = Users.findOne(member.userId).username; return member; }); - const mentionRegex = /\B@(\w*)/gi; + const mentionRegex = /\B@([\w.]*)/gi; let content = Blaze.toHTML(view.templateContentBlock); let currentMention; |