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

Unified Diff: tracing/tracing/base/utils.html

Issue 3008203002: Format traceUrls in generic-set-span. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | tracing/tracing/value/ui/diagnostic_map_table.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/utils.html
diff --git a/tracing/tracing/base/utils.html b/tracing/tracing/base/utils.html
index 77d3c8b17c7f6a5dba72abbcbff98098640e76d6..e2f6ba81b9d59264f711a0bdc810c29ba9e7df8e 100644
--- a/tracing/tracing/base/utils.html
+++ b/tracing/tracing/base/utils.html
@@ -11,7 +11,7 @@ found in the LICENSE file.
'use strict';
tr.exportTo('tr.b', function() {
- const URL_REGEX = /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/; // eslint-disable-line max-len
+ const URL_REGEX = /^(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b|file:\/\/)([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/; // eslint-disable-line max-len
function deepCopy(value) {
if (!(value instanceof Object)) {
« no previous file with comments | « no previous file | tracing/tracing/value/ui/diagnostic_map_table.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698