fix property parser

This commit is contained in:
Shin'ya Ueoka 2018-01-11 20:14:56 +09:00
parent dda4e7475c
commit befcff973a
2 changed files with 8 additions and 1 deletions

View file

@ -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);
}