From 4e80350df5877fd763fcf0ddddc9776e02828b09 Mon Sep 17 00:00:00 2001 From: Roslot Date: Wed, 26 Jun 2019 22:04:59 -0400 Subject: Fixed regex bug in @mentions --- client/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') 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) ) ) { -- cgit v1.2.1