aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2019-06-27 06:02:36 +0200
committerGitHub <noreply@github.com>2019-06-27 06:02:36 +0200
commit0a7cd63aab5b102ce402543803cb4db75597aef1 (patch)
treef3a3f8a3507ab4924bf0242a87e6d23229426d2a /client
parentMerge pull request #72 from hack-chat/dependabot/npm_and_yarn/clientSource/ec... (diff)
parentFixed regex bug in @mentions (diff)
downloadhackchat-0a7cd63aab5b102ce402543803cb4db75597aef1.tar.gz
hackchat-0a7cd63aab5b102ce402543803cb4db75597aef1.zip
Merge pull request #74 from Roslot/master
Fixed regex bug in @mentions
Diffstat (limited to 'client')
-rw-r--r--client/client.js2
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)
)
) {