fix property parser
This commit is contained in:
parent
dda4e7475c
commit
befcff973a
2 changed files with 8 additions and 1 deletions
|
@ -30,7 +30,7 @@ const mustNumber = (v) => {
|
|||
|
||||
const parseSetOption = (word, types) => {
|
||||
let [key, value] = word.split('=');
|
||||
if (!value) {
|
||||
if (value === undefined) {
|
||||
value = !key.startsWith('no');
|
||||
key = value ? key : key.slice(2);
|
||||
}
|
||||
|
|
Reference in a new issue