1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-09 20:22:47 +01:00

Fix BannedWords breaking because windows line endings

This commit is contained in:
Madeline 2022-10-25 11:12:08 +11:00
parent c84cdf0d2a
commit f3a5fa07f7
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -13,7 +13,7 @@ export const BannedWords = {
words = [];
return [];
}
words = file.trim().split("\n");
words = file.trim().split("\r").join("").split("\n");
return words;
},