Update ChatFilter.plugin.js

This commit is contained in:
Mirco Wittrien 2021-05-21 14:26:44 +02:00 committed by GitHub
parent 60658f0c9b
commit fdce5dc1dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,7 @@ module.exports = (_ => {
}
createReg (word, config) {
let escapedWord = config.regex ? word : BDFDB.StringUtils.htmlEscape(BDFDB.StringUtils.regEscape(word));
let escapedWord = config.regex ? word : BDFDB.StringUtils.regEscape(word);
return new RegExp(config.exact ? "^" + escapedWord + "$" : escapedWord, `${config.case ? "" : "i"}${config.exact ? "" : "g"}`);
}
@ -609,4 +609,4 @@ module.exports = (_ => {
}
};
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
})();
})();