From fe5ea60847ef26d470ffd346e666cb0f49b000c9 Mon Sep 17 00:00:00 2001 From: Jonas Oberg Date: Fri, 25 Aug 2017 08:22:20 +0200 Subject: Usernames should be able to include dots (.) --- sandstorm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sandstorm.js') 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); -- cgit v1.2.3-1-g7c22