summary refs log tree commit diff
path: root/src
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
commitc1b955aaae5fa98b4cb01a1e61d05dd257296e6b (patch)
tree357215ff96dc611130d837084ff275d7e9a9b5f6 /src
parentFix fix for twitter embeds from yesterday (diff)
downloadserver-c1b955aaae5fa98b4cb01a1e61d05dd257296e6b.tar.xz
Fix BannedWords breaking because windows line endings
Diffstat (limited to 'src')
-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;
 	},