From f3a5fa07f7b667c3f9bfcc76b921bf0a1068a8ed Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Tue, 25 Oct 2022 11:12:08 +1100 Subject: Fix BannedWords breaking because windows line endings --- src/util/util/BannedWords.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; }, -- cgit 1.4.1