mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 14:30:57 +00:00
extend custom highlight regex
This commit is contained in:
parent
ebe7546dd9
commit
9769f023c5
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ Client.prototype.compileCustomHighlights = function() {
|
|||
return;
|
||||
}
|
||||
|
||||
client.highlightRegex = new RegExp(`(?:^| |\t)(?:${highlightsTokens.join("|")})(?:\t| |$)`, "i");
|
||||
client.highlightRegex = new RegExp(`(?:^|[ .,+!?|/:<>(){}'"@&~-])(?:${highlightsTokens.join("|")})(?:$|[ .,+!?|/:<>(){}'"-])`, "i");
|
||||
};
|
||||
|
||||
Client.prototype.more = function(data) {
|
||||
|
|
Loading…
Reference in a new issue