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 | f3a5fa07f7b667c3f9bfcc76b921bf0a1068a8ed (patch) | |
tree | fc80949fe8ad93ca7213497deb85e028358bd017 | |
parent | Fix fix for twitter embeds from yesterday (diff) | |
download | server-f3a5fa07f7b667c3f9bfcc76b921bf0a1068a8ed.tar.xz |
Fix BannedWords breaking because windows line endings
-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; }, |