diff --git a/src/listeners/messageInvalid.js b/src/listeners/messageInvalid.js index dfaedc2..cb830f5 100644 --- a/src/listeners/messageInvalid.js +++ b/src/listeners/messageInvalid.js @@ -72,6 +72,10 @@ class MessageInvalidListener extends Listener { const valid = new Map(); const invalid = []; for (const [key, value] of kvs) { + if (!key) { + continue; + } + const ok = Object.prototype.hasOwnProperty.call(language.options, key) && language.options[key](value); if (ok) { valid.set(key, value);