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 cd812cd commit 8afb2c5Copy full SHA for 8afb2c5
lib/internal/options.js
@@ -6,7 +6,7 @@ const {
6
} = internalBinding('options');
7
8
const {
9
- StringPrototypeStartsWith,
+ StringPrototypeSlice,
10
} = primordials;
11
12
let warnOnAllowUnauthorized = true;
@@ -55,7 +55,7 @@ function getOptionValue(optionName) {
55
optionName[3] === 'o' &&
56
optionName[4] === '-'
57
) {
58
- const option = options.get('--' + optionName.slice(5));
+ const option = options.get('--' + StringPrototypeSlice(optionName, 5));
59
return option && !option.value;
60
}
61
return options.get(optionName)?.value;
0 commit comments