Skip to content

Commit f02fb06

Browse files
Arihant JainArihant Jain
authored andcommitted
Removed checking for regex
1 parent 68f29a1 commit f02fb06

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/commandLine.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ var CommandLineManager = {
120120
if (index !== -1) {
121121
if (CommandLineManager.validArgValue(argv[index + 1])) {
122122
var host = argv[index + 1];
123-
if (host.match(constants.PROTOCOL_REGEX)) {
124-
host = host.replace(constants.PROTOCOL_REGEX, '');
125-
}
123+
host = host.replace(constants.PROTOCOL_REGEX, '');
126124
RdGlobalConfig.proxy = RdGlobalConfig.proxy || {};
127125
RdGlobalConfig.proxy.host = host;
128126
argv.splice(index, 2);

0 commit comments

Comments
 (0)