We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
as a quick-fix you can assign an empt array: protections.wordlist.words: []
protections.wordlist.words: []
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: