Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js

Issue 2372303003: DevTools: introduce external service client (behind experiment). (Closed)
Patch Set: external linter Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
index b4a228f29172a5e724554fe122b377678ff0e67a..a956c3b335c4908af68c0bd840098eae05660658 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
@@ -468,9 +468,10 @@ WebInspector.linkifyStringAsFragmentWithCustomLinkifier = function(string, linki
{
var container = createDocumentFragment();
var linkStringRegEx = /(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\/\/|data:|www\.)[\w$\-_+*'=\|\/\\(){}[\]^%@&#~,:;.!?]{2,}[\w$\-_+*=\|\/\\({^%@&#~]/;
+ var pathLineRegex = /(?:\/[\/\w\.-]+)+\:[\d]+/;
while (string && string.length < WebInspector.Linkifier.MaxLengthToIgnoreLinkifier) {
- var linkString = linkStringRegEx.exec(string);
+ var linkString = linkStringRegEx.exec(string) || pathLineRegex.exec(string);
wOxxOm 2016/11/08 14:41:21 See https://crbug.com/663342 - pathLineRegex.exec
if (!linkString)
break;
« no previous file with comments | « third_party/WebKit/Source/devtools/BUILD.gn ('k') | third_party/WebKit/Source/devtools/front_end/externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698