summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-25 11:12:08 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-25 11:12:08 +1100
commitf3a5fa07f7b667c3f9bfcc76b921bf0a1068a8ed (patch)
treefc80949fe8ad93ca7213497deb85e028358bd017
parentFix fix for twitter embeds from yesterday (diff)
downloadserver-f3a5fa07f7b667c3f9bfcc76b921bf0a1068a8ed.tar.xz
Fix BannedWords breaking because windows line endings
-rw-r--r--src/util/util/BannedWords.ts2
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;
 	},