| Index: third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js b/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js
|
| index b3fbdf2aba3bbd43ec9f84d4a339c8ac5a4be107..5bd0ff221b1f28f846c77a53d5383487457fc26c 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js
|
| @@ -71,7 +71,7 @@ WebInspector.ParsedURL = function(url)
|
| } else {
|
| this.lastPathComponent = this.path;
|
| }
|
| -}
|
| +};
|
|
|
| /**
|
| * @param {string} fileSystemPath
|
| @@ -87,7 +87,7 @@ WebInspector.ParsedURL.platformPathToURL = function(fileSystemPath)
|
| fileSystemPath = "file:///" + fileSystemPath;
|
| }
|
| return fileSystemPath;
|
| -}
|
| +};
|
|
|
| /**
|
| * @return {!RegExp}
|
| @@ -112,7 +112,7 @@ WebInspector.ParsedURL._urlRegex = function()
|
|
|
| WebInspector.ParsedURL._urlRegexInstance = new RegExp("^" + schemeRegex.source + hostRegex.source + portRegex.source + pathRegex.source + queryRegex.source + fragmentRegex.source + "$");
|
| return WebInspector.ParsedURL._urlRegexInstance;
|
| -}
|
| +};
|
|
|
| /**
|
| * @param {string} url
|
| @@ -122,7 +122,7 @@ WebInspector.ParsedURL.extractPath = function(url)
|
| {
|
| var parsedURL = url.asParsedURL();
|
| return parsedURL ? parsedURL.path : "";
|
| -}
|
| +};
|
|
|
| /**
|
| * @param {string} url
|
| @@ -132,7 +132,7 @@ WebInspector.ParsedURL.extractOrigin = function(url)
|
| {
|
| var parsedURL = url.asParsedURL();
|
| return parsedURL ? parsedURL.securityOrigin() : "";
|
| -}
|
| +};
|
|
|
| /**
|
| * @param {string} url
|
| @@ -146,7 +146,7 @@ WebInspector.ParsedURL.extractExtension = function(url)
|
| if (indexOfQuestionMark !== -1)
|
| extension = extension.substr(0, indexOfQuestionMark);
|
| return extension;
|
| -}
|
| +};
|
|
|
| /**
|
| * @param {string} url
|
| @@ -156,7 +156,7 @@ WebInspector.ParsedURL.extractName = function(url)
|
| {
|
| var index = url.lastIndexOf("/");
|
| return index !== -1 ? url.substr(index + 1) : url;
|
| -}
|
| +};
|
|
|
| /**
|
| * @param {string} baseURL
|
| @@ -206,7 +206,7 @@ WebInspector.ParsedURL.completeURL = function(baseURL, href)
|
| if (hrefPath.charAt(0) !== "/")
|
| hrefPath = parsedURL.folderPathComponents + "/" + hrefPath;
|
| return securityOrigin + Runtime.normalizePath(hrefPath) + hrefSuffix;
|
| -}
|
| +};
|
|
|
| WebInspector.ParsedURL.prototype = {
|
| get displayName()
|
| @@ -293,7 +293,7 @@ WebInspector.ParsedURL.prototype = {
|
| return this.url.substring(this.scheme.length + 3);
|
| return this.url;
|
| },
|
| -}
|
| +};
|
|
|
| /**
|
| * @param {string} string
|
| @@ -318,7 +318,7 @@ WebInspector.ParsedURL.splitLineAndColumn = function(string)
|
| }
|
|
|
| return {url: string.substring(0, string.length - lineColumnMatch[0].length), lineNumber: lineNumber, columnNumber: columnNumber};
|
| -}
|
| +};
|
|
|
| /**
|
| * @param {string} url
|
| @@ -327,7 +327,7 @@ WebInspector.ParsedURL.splitLineAndColumn = function(string)
|
| WebInspector.ParsedURL.isRelativeURL = function(url)
|
| {
|
| return !(/^[A-Za-z][A-Za-z0-9+.-]*:/.test(url));
|
| -}
|
| +};
|
|
|
| /**
|
| * @return {?WebInspector.ParsedURL}
|
| @@ -338,4 +338,4 @@ String.prototype.asParsedURL = function()
|
| if (parsedURL.isValid)
|
| return parsedURL;
|
| return null;
|
| -}
|
| +};
|
|
|