Index: lib/matcher.js |
=================================================================== |
--- a/lib/matcher.js |
+++ b/lib/matcher.js |
@@ -117,17 +117,17 @@ |
return result; |
// Remove options |
let match = Filter.optionsRegExp.exec(text); |
if (match) |
text = match.input.substr(0, match.index); |
// Remove whitelist marker |
- if (text.substr(0, 2) == "@@") |
+ if (text[0] == "@" && text[1] == "@") |
text = text.substr(2); |
let candidates = text.toLowerCase().match( |
/[^a-z0-9%*][a-z0-9%]{3,}(?=[^a-z0-9%*])/g |
); |
if (!candidates) |
return result; |