fix regex

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2016-10-18 17:05:56 +02:00
parent b21ce6ee5e
commit 70bd6cafd4
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 1 additions and 1 deletions

View File

@ -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;