src: fix jslint warning
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
parent
4809c7aa4f
commit
7b4a540422
@ -114,7 +114,8 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|||||||
// Back slashes before the query string get converted to forward slashes
|
// Back slashes before the query string get converted to forward slashes
|
||||||
// See: https://code.google.com/p/chromium/issues/detail?id=25916
|
// See: https://code.google.com/p/chromium/issues/detail?id=25916
|
||||||
var queryIndex = url.indexOf('?'),
|
var queryIndex = url.indexOf('?'),
|
||||||
splitter = (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
|
splitter =
|
||||||
|
(queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',
|
||||||
uSplit = url.split(splitter),
|
uSplit = url.split(splitter),
|
||||||
slashRegex = /\\/g;
|
slashRegex = /\\/g;
|
||||||
uSplit[0] = uSplit[0].replace(slashRegex, '/');
|
uSplit[0] = uSplit[0].replace(slashRegex, '/');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user