Fix BannedWords breaking because windows line endings
This commit is contained in:
parent
a11686cfc6
commit
c1b955aaae
@ -13,7 +13,7 @@ export const BannedWords = {
|
|||||||
words = [];
|
words = [];
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
words = file.trim().split("\n");
|
words = file.trim().split("\r").join("").split("\n");
|
||||||
return words;
|
return words;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user