diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-25 11:12:08 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-25 11:12:08 +1100 |
commit | c1b955aaae5fa98b4cb01a1e61d05dd257296e6b (patch) | |
tree | 357215ff96dc611130d837084ff275d7e9a9b5f6 /src | |
parent | Fix fix for twitter embeds from yesterday (diff) | |
download | server-c1b955aaae5fa98b4cb01a1e61d05dd257296e6b.tar.xz |
Fix BannedWords breaking because windows line endings
Diffstat (limited to 'src')
-rw-r--r-- | src/util/util/BannedWords.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util/BannedWords.ts b/src/util/util/BannedWords.ts index 74a82efe..e56635d5 100644 --- a/src/util/util/BannedWords.ts +++ b/src/util/util/BannedWords.ts @@ -13,7 +13,7 @@ export const BannedWords = { words = []; return []; } - words = file.trim().split("\n"); + words = file.trim().split("\r").join("").split("\n"); return words; }, |