diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-10-08 01:13:43 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2014-10-08 01:13:43 -0700 |
commit | 7b4a540422f2155f0e57d963be69960c1325474d (patch) | |
tree | 9c3ba55322d23079ea4e672b739e4bc4013c147f | |
parent | 4809c7aa4f84385ba358d1947203fbeba8555b76 (diff) | |
download | node-new-7b4a540422f2155f0e57d963be69960c1325474d.tar.gz |
src: fix jslint warning
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
-rw-r--r-- | lib/url.js | 3 |
1 files changed, 2 insertions, 1 deletions
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, '/'); |