Fix scope option parsing in ldapjs-search util
This commit is contained in:
parent
2939fa1fad
commit
e30a5dab33
|
@ -38,6 +38,7 @@ dashdash.addOptionType({
|
|||
if (!/^base|one|sub$/.test(arg)) {
|
||||
throw new TypeError('Scope must be <base|one|sub>');
|
||||
}
|
||||
return arg;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue