summaryrefslogtreecommitdiffstats
path: root/apps/comments/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-18 17:05:56 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-19 00:34:00 +0200
commit70bd6cafd40dab7f5e4fd9c4aff49d60b0b5c608 (patch)
tree89db2de9dfe814e34b39e8b88a1e9ebda0d88338 /apps/comments/js
parentb21ce6ee5e9aa0073922e7d00e5f5834863dc107 (diff)
downloadnextcloud-server-70bd6cafd40dab7f5e4fd9c4aff49d60b0b5c608.tar.gz
nextcloud-server-70bd6cafd40dab7f5e4fd9c4aff49d60b0b5c608.zip
fix regex
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/comments/js')
-rw-r--r--apps/comments/js/commentstabview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index 9c0e6a6b68c..e8bd4f82e9b 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;