summaryrefslogtreecommitdiffstats
path: root/sandstorm.js
diff options
context:
space:
mode:
Diffstat (limited to 'sandstorm.js')
-rw-r--r--sandstorm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandstorm.js b/sandstorm.js
index 80910dc3..6b7c8172 100644
--- a/sandstorm.js
+++ b/sandstorm.js
@@ -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);