diff options
author | Roslot <pines@null.net> | 2019-06-27 04:04:59 +0200 |
---|---|---|
committer | Roslot <pines@null.net> | 2019-06-27 04:04:59 +0200 |
commit | 4e80350df5877fd763fcf0ddddc9776e02828b09 (patch) | |
tree | f3a3f8a3507ab4924bf0242a87e6d23229426d2a | |
parent | Merge pull request #72 from hack-chat/dependabot/npm_and_yarn/clientSource/ec... (diff) | |
download | hackchat-4e80350df5877fd763fcf0ddddc9776e02828b09.tar.gz hackchat-4e80350df5877fd763fcf0ddddc9776e02828b09.zip |
Fixed regex bug in @mentions
-rw-r--r-- | client/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client.js b/client/client.js index 2f33dc6..84ad60c 100644 --- a/client/client.js +++ b/client/client.js @@ -316,7 +316,7 @@ function pushMessage(args) { if ( typeof (myNick) === 'string' && ( - args.text.match(new RegExp('@' + myNick.split('#')[0], "gi")) || + args.text.match(new RegExp('@' + myNick.split('#')[0] + '\\b', "gi")) || ((args.type === "whisper" || args.type === "invite") && args.from) ) ) { |