|
@ -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, '/'); |
|
|