diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-10-18 17:05:56 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-10-19 00:34:00 +0200 |
commit | 70bd6cafd40dab7f5e4fd9c4aff49d60b0b5c608 (patch) | |
tree | 89db2de9dfe814e34b39e8b88a1e9ebda0d88338 /apps/comments/js | |
parent | b21ce6ee5e9aa0073922e7d00e5f5834863dc107 (diff) | |
download | nextcloud-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.js | 2 |
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; |