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

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

Issue 2485963005: [Devtools] Fixed regression with linkifier regex (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/components/linkifier.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 97221657b101e52ec9c1174b31c44b5195f87c9a..8c461e89068985366d2e584f07c05675838d43a8 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/Linkifier.js
@@ -402,7 +402,7 @@ 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]+/;
+ var pathLineRegex = /(?:\/[\w\.-]*)+\:[\d]+/;
while (string && string.length < WebInspector.Linkifier.MaxLengthToIgnoreLinkifier) {
var linkString = linkStringRegEx.exec(string) || pathLineRegex.exec(string);
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/components/linkifier.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698