Open MurzNN opened 3 years ago
Describe the bug When the protections.wordlist.words list is empty in YAML config file, mjolnir failts to start with this error:
protections.wordlist.words
mjolnir/lib/protections/WordList.js:35 this.badWords = new RegExp("(" + config_1.default.protections.wordlist.words.join(")|(") + ")", "i"); TypeError: Cannot read property 'join' of null
To Reproduce Steps to reproduce the behavior:
Expected behavior Empty list should be treated as empty, without fatal errors.
as a quick-fix you can assign an empt array: protections.wordlist.words: []
protections.wordlist.words: []
Describe the bug When the
protections.wordlist.words
list is empty in YAML config file, mjolnir failts to start with this error:To Reproduce Steps to reproduce the behavior:
protections.wordlist.words
values in example config.Expected behavior Empty list should be treated as empty, without fatal errors.