Skip to content

Commit

Permalink
Styling fixes and removed unnecessary regexp flag
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Dec 11, 2014
1 parent b92ffaf commit 28bca6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function launchServer() {
}

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

Expand Down
4 changes: 2 additions & 2 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ if (commit_id) {
});

var formatPath = function(path) {
if(/^win/.test(process.platform)){
path = path.replace(/\//gi, '\\');
if (/^win/.test(process.platform)) {
path = path.replace(/\//g, '\\');
}

if (path.indexOf(pwd) === 0) {
Expand Down
8 changes: 4 additions & 4 deletions lib/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ var Tunnel = function Tunnel(key, port, uniqueIdentifier, callback) {
that.process = subProcess;
}

function getTunnelOptions(key, uniqueIdentifier){
function getTunnelOptions(key, uniqueIdentifier) {
var options = [key];

if (config.debug) {
options.push('-v');
}

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

var proxy = config.proxy;

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

if(proxy.username && proxy.password){
if (proxy.username && proxy.password) {
options.push('-proxyUser ' + proxy.username);
options.push('-proxyPass ' + proxy.password);
}
Expand Down

0 comments on commit 28bca6c

Please sign in to comment.