Fix URL matching in automod, censor, and spam plugin

This commit is contained in:
Dragory 2019-11-27 20:41:45 +02:00
parent 682d8e9153
commit 9164bcd045
3 changed files with 23 additions and 1 deletions

View file

@ -640,6 +640,7 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema> {
protected evaluateMatchLinksTrigger(trigger: TMatchLinksTrigger, str: string): boolean {
const links = getUrlsInString(str, true);
for (const link of links) {
const normalizedHostname = link.hostname.toLowerCase();