extend custom highlight regex

This commit is contained in:
Jay2k1 2019-02-19 15:19:45 +01:00 committed by GitHub
parent ebe7546dd9
commit 9769f023c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,7 +401,7 @@ Client.prototype.compileCustomHighlights = function() {
return; return;
} }
client.highlightRegex = new RegExp(`(?:^| |\t)(?:${highlightsTokens.join("|")})(?:\t| |$)`, "i"); client.highlightRegex = new RegExp(`(?:^|[ .,+!?|/:<>(){}'"@&~-])(?:${highlightsTokens.join("|")})(?:$|[ .,+!?|/:<>(){}'"-])`, "i");
}; };
Client.prototype.more = function(data) { Client.prototype.more = function(data) {