From 9bc6ca4b2e42d8c55318710d115f3cdaeb5459eb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 23 Oct 2021 20:58:45 +0000 Subject: Automatically format code --- src/lib/common/AutoMod.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/common') diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts index 5f0b8a0..adc629a 100644 --- a/src/lib/common/AutoMod.ts +++ b/src/lib/common/AutoMod.ts @@ -30,7 +30,7 @@ export class AutoMod { ignoreSpaces: true, ignoreCapitalization: true, reason: 'malicious link', - regex: false, + regex: false }; }); @@ -72,8 +72,7 @@ export class AutoMod { if (new RegExp(word).test(this.format(word, wordOptions))) { matchedWords[word] = wordOptions; } - } - else { + } else { if (this.format(this.message.content, wordOptions).includes(this.format(word, wordOptions))) { matchedWords[word] = wordOptions; } -- cgit