Chromium Code Reviews| 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 559c5f7c4afcb8a6a1b7f9056b7247393d79a5cf..581146b0e6691e24d2e1b54eff16e9cebf96018b 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/common/ParsedURL.js |
| @@ -303,6 +303,15 @@ WebInspector.ParsedURL.splitLineAndColumn = function(string) |
| } |
| /** |
| + * @param {string} url |
| + * @return {boolean} |
| + */ |
| +WebInspector.ParsedURL.isRelativeURL = function(url) |
| +{ |
| + return !(/^([A-Za-z][A-Za-z0-9+.-]*):/.test(url)); |
|
caseq
2016/03/17 00:28:39
nit: drop parenthesis before ':'
dgozman
2016/03/18 19:06:47
Done.
|
| +} |
| + |
| +/** |
| * @return {?WebInspector.ParsedURL} |
| */ |
| String.prototype.asParsedURL = function() |