aboutsummaryrefslogtreecommitdiff
path: root/src/shared/commands
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-01-11 20:14:56 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-01-11 20:14:56 +0900
commitbefcff973aa0fd9b0f3a73932a39d36e9eb85bf2 (patch)
treef4361ce9dc0401384335529ec4f90870b7bcec63 /src/shared/commands
parentdda4e7475cdd092d00441c7cd0ceb194ee5dee3d (diff)
fix property parser
Diffstat (limited to 'src/shared/commands')
-rw-r--r--src/shared/commands/parsers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/commands/parsers.js b/src/shared/commands/parsers.js
index af51338..fb37d2a 100644
--- a/src/shared/commands/parsers.js
+++ b/src/shared/commands/parsers.js
@@ -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);
}