mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Usernames should be able to include dots (.)
This commit is contained in:
parent
1b40c42cab
commit
fe5ea60847
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue