mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30: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
|
|
@ -188,7 +188,7 @@ if (isSandstorm && Meteor.isServer) {
|
|||
caption = { defaultText: comment.text };
|
||||
const activeMembers =
|
||||
_.pluck(Boards.findOne(sandstormBoard._id).activeMembers(), 'userId');
|
||||
(comment.text.match(/\B@(\w*)/g) || []).forEach((username) => {
|
||||
(comment.text.match(/\B@([\w.]*)/g) || []).forEach((username) => {
|
||||
const user = Meteor.users.findOne({ username: username.slice(1)});
|
||||
if (user && activeMembers.indexOf(user._id) !== -1) {
|
||||
mentionedUser(user._id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue