This commit is contained in:
Mirco Wittrien 2021-05-21 15:55:31 +02:00
commit 35fc3931ec
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"}`);
}