Fix empty invalid options
This commit is contained in:
parent
5483c509c0
commit
ec5d2a8ce0
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue