reciple 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -104,7 +104,7 @@ class MessageCommandBuilder {
|
|
|
104
104
|
const arg = args[i];
|
|
105
105
|
if (!arg && option.required)
|
|
106
106
|
return;
|
|
107
|
-
if (!option.validate(arg))
|
|
107
|
+
if (typeof arg !== 'undefined' && !option.validate(arg))
|
|
108
108
|
return;
|
|
109
109
|
result = [...result, { name: option.name, value: arg, required: option.required }];
|
|
110
110
|
i++;
|