src: fix jslint warning
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
This commit is contained in:
Родитель
4809c7aa4f
Коммит
7b4a540422
|
@ -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, '/');
|
||||
|
|
Загрузка…
Ссылка в новой задаче