We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7bdc89 commit 439e4f3Copy full SHA for 439e4f3
lib/checks.js
@@ -191,10 +191,10 @@ var commands = module.exports = {
191
var cmd = /\ [^-].*/.exec(args);
192
if (cmd != null) {
193
var options = args.substring(0, cmd.index).match(/--\w+/g);
194
- if (!options.reduce((valid, item) => valid &&
195
- (allowedoptions.indexOf(item) > -1), true)) return ['invalid_format'];
196
-
197
if (options != null) {
+ if (!options.reduce((valid, item) => valid &&
+ (allowedoptions.indexOf(item) > -1), true)) return ['invalid_format'];
+
198
var optparams = args.substring(0, cmd.index).match(/--\w+=\d+\w*/g);
199
return ((optparams != null) && (optparams.length == options.length)) ?
200
[] : ['healthcheck_options_missing_args'];
0 commit comments