From 7b4a540422f2155f0e57d963be69960c1325474d Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Wed, 8 Oct 2014 01:13:43 -0700 Subject: [PATCH] src: fix jslint warning Signed-off-by: Trevor Norris --- lib/url.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/url.js b/lib/url.js index d772b4f58c..e01343a506 100644 --- a/lib/url.js +++ b/lib/url.js @@ -114,7 +114,8 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { // Back slashes before the query string get converted to forward slashes // See: https://code.google.com/p/chromium/issues/detail?id=25916 var queryIndex = url.indexOf('?'), - splitter = (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#', + splitter = + (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#', uSplit = url.split(splitter), slashRegex = /\\/g; uSplit[0] = uSplit[0].replace(slashRegex, '/');