bugfix?
This commit is contained in:
parent
01cc2d7a8c
commit
9d70400a30
@ -274,6 +274,7 @@ module.exports = class FilterUtility {
|
|||||||
//log += `\next reg: ${tmp}`;
|
//log += `\next reg: ${tmp}`;
|
||||||
const fullWord = words.find((word) => word.includes(match[1]));
|
const fullWord = words.find((word) => word.includes(match[1]));
|
||||||
|
|
||||||
|
if(fullWord) {
|
||||||
let inWL = false;
|
let inWL = false;
|
||||||
try { // This is for debugging only
|
try { // This is for debugging only
|
||||||
inWL = FilterUtility.whitelist.find(fullWord);
|
inWL = FilterUtility.whitelist.find(fullWord);
|
||||||
@ -287,6 +288,7 @@ module.exports = class FilterUtility {
|
|||||||
this.logger.debug(`Match length diff: ${diff} MATCH: ${match[0]} FULL: ${fullWord}, CONTENT: ${content}`);
|
this.logger.debug(`Match length diff: ${diff} MATCH: ${match[0]} FULL: ${fullWord}, CONTENT: ${content}`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// log += `\nMessage matched with "${reg}" in the regex list.\nMatch: ${match[0]}, Full word: ${fullWord}\nFull content: ${content}`;
|
// log += `\nMessage matched with "${reg}" in the regex list.\nMatch: ${match[0]}, Full word: ${fullWord}\nFull content: ${content}`;
|
||||||
return {
|
return {
|
||||||
match: fullWord,
|
match: fullWord,
|
||||||
|
Loading…
Reference in New Issue
Block a user