aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-23 20:58:45 +0000
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-23 20:58:45 +0000
commit9bc6ca4b2e42d8c55318710d115f3cdaeb5459eb (patch)
tree72faf5258056a6897ffe328cf1fccad7dd8c7914 /src/lib/common
parent541b886a3be538c35049c0f19b802a84d9bd4936 (diff)
downloadtanzanite-9bc6ca4b2e42d8c55318710d115f3cdaeb5459eb.tar.gz
tanzanite-9bc6ca4b2e42d8c55318710d115f3cdaeb5459eb.tar.bz2
tanzanite-9bc6ca4b2e42d8c55318710d115f3cdaeb5459eb.zip
Automatically format code
Diffstat (limited to 'src/lib/common')
-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;
}