1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Merge pull request #74 from Roslot/master

Fixed regex bug in @mentions
This commit is contained in:
marzavec 2019-06-26 23:02:36 -05:00 committed by GitHub
commit 0a7cd63aab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
)
) {