mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-10 21:27:01 +00:00
Fix BannedWords breaking because windows line endings
This commit is contained in:
@@ -13,7 +13,7 @@ export const BannedWords = {
|
||||
words = [];
|
||||
return [];
|
||||
}
|
||||
words = file.trim().split("\n");
|
||||
words = file.trim().split("\r").join("").split("\n");
|
||||
return words;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user