diff options
author | marzavec <admin@marzavec.com> | 2019-06-27 06:02:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 06:02:36 +0200 |
commit | 0a7cd63aab5b102ce402543803cb4db75597aef1 (patch) | |
tree | f3a3f8a3507ab4924bf0242a87e6d23229426d2a | |
parent | Merge pull request #72 from hack-chat/dependabot/npm_and_yarn/clientSource/ec... (diff) | |
parent | Fixed regex bug in @mentions (diff) | |
download | hackchat-0a7cd63aab5b102ce402543803cb4db75597aef1.tar.gz hackchat-0a7cd63aab5b102ce402543803cb4db75597aef1.zip |
Merge pull request #74 from Roslot/master
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) ) ) { |