From 9be98559105a23dcc7dae8c73beaf132366466cf Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 27 Jan 2024 14:59:12 +0200 Subject: [PATCH] forgot to remove debug statements --- src/client/components/observers/Automoderation.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/components/observers/Automoderation.ts b/src/client/components/observers/Automoderation.ts index cca464a..ad16eab 100644 --- a/src/client/components/observers/Automoderation.ts +++ b/src/client/components/observers/Automoderation.ts @@ -534,13 +534,13 @@ export default class AutoModeration extends Observer implements Initialisable return; const content = msg.content.split('').join(''); // Copy the string... let matches = content.match(this.regex.linkRegG); - console.log('matches', matches); + // console.log('matches', matches); let removedWhitespace = false; if (!matches) { matches = content.replace(/\s/u, '').match(this.regex.linkRegG); removedWhitespace = true; - console.log('secondary matches', matches); + // console.log('secondary matches', matches); } if (!matches) @@ -552,7 +552,7 @@ export default class AutoModeration extends Observer implements Initialisable for (const match of matches) { let domain = match.match(this.regex.linkReg)!.groups?.domain; - console.log('domain', domain); + // console.log('domain', domain); if (!domain) continue; domain = domain.toLowerCase(); @@ -589,11 +589,11 @@ export default class AutoModeration extends Observer implements Initialisable const parts = domain.split('.'); const validTld = this.topLevelDomains.find(parts[parts.length - 1]); - console.log(parts, validTld); + // console.log(parts, validTld); if (!validTld) continue; const valid = await resolver.validateDomain(domain); - console.log('valid domain?', valid); + // console.log('valid domain?', valid); if (removedWhitespace && !match.includes(`${domain}/`)) continue;