Skip to content

Commit 28bca6c

Browse files
unknownunknown
authored andcommitted
Styling fixes and removed unnecessary regexp flag
1 parent b92ffaf commit 28bca6c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function launchServer() {
120120
}
121121

122122
function launchBrowser(browser, path) {
123-
var url = 'http://localhost:' + serverPort.toString() + '/' + path.replace(/\\/gi, '/');
123+
var url = 'http://localhost:' + serverPort.toString() + '/' + path.replace(/\\/g, '/');
124124
var browserString = utils.browserString(browser);
125125
logger.debug('[%s] Launching', getTestBrowserInfo(browserString, path));
126126

lib/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ if (commit_id) {
6161
});
6262

6363
var formatPath = function(path) {
64-
if(/^win/.test(process.platform)){
65-
path = path.replace(/\//gi, '\\');
64+
if (/^win/.test(process.platform)) {
65+
path = path.replace(/\//g, '\\');
6666
}
6767

6868
if (path.indexOf(pwd) === 0) {

lib/local.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ var Tunnel = function Tunnel(key, port, uniqueIdentifier, callback) {
5959
that.process = subProcess;
6060
}
6161

62-
function getTunnelOptions(key, uniqueIdentifier){
62+
function getTunnelOptions(key, uniqueIdentifier) {
6363
var options = [key];
6464

6565
if (config.debug) {
6666
options.push('-v');
6767
}
6868

69-
if(!uniqueIdentifier){
69+
if (!uniqueIdentifier) {
7070
options.push('-force');
7171
options.push('-onlyAutomate');
7272
} else {
@@ -75,11 +75,11 @@ var Tunnel = function Tunnel(key, port, uniqueIdentifier, callback) {
7575

7676
var proxy = config.proxy;
7777

78-
if(proxy){
78+
if (proxy) {
7979
options.push('-proxyHost ' + proxy.host);
8080
options.push('-proxyPort ' + proxy.port);
8181

82-
if(proxy.username && proxy.password){
82+
if (proxy.username && proxy.password) {
8383
options.push('-proxyUser ' + proxy.username);
8484
options.push('-proxyPass ' + proxy.password);
8585
}

0 commit comments

Comments
 (0)