From 70bd6cafd40dab7f5e4fd9c4aff49d60b0b5c608 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 18 Oct 2016 17:05:56 +0200 Subject: [PATCH] fix regex Signed-off-by: Arthur Schiwon --- apps/comments/js/commentstabview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index 9c0e6a6b68..e8bd4f82e9 100644 --- a/apps/comments/js/commentstabview.js +++ b/apps/comments/js/commentstabview.js @@ -264,7 +264,7 @@ // replace every mention either at the start of the input or after a whitespace // followed by a non-word character. - message = message.replace(new RegExp("(^|\\s)(" + mention + ")(\\b|?![_-@.])", 'g'), + message = message.replace(new RegExp("(^|\\s)(" + mention + ")\\b", 'g'), function(match, p1) { // to get number of whitespaces (0 vs 1) right return p1+displayName;