Fix scope option parsing in ldapjs-search util

This commit is contained in:
Patrick Mooney 2014-07-10 09:58:25 -05:00
parent 2939fa1fad
commit e30a5dab33
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ dashdash.addOptionType({
if (!/^base|one|sub$/.test(arg)) {
throw new TypeError('Scope must be <base|one|sub>');
}
return arg;
}
});