aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/AutoMod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common/AutoMod.ts')
-rw-r--r--src/lib/common/AutoMod.ts5
1 files changed, 2 insertions, 3 deletions
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;
}