From 563221698c778fd38cf3ac77926b4875124864d9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 13 Apr 2011 09:18:37 -0400 Subject: [PATCH] findUrl: don't match non-:// URLs Although "x:5" could theoretically be a URL with scheme "x" and path "5", it probably isn't. Only URLify strings that use the "authority" syntax ("foo://"). (No one ever types out "mailto:" URLs in ordinary text, so we don't want to match those either.) https://bugzilla.gnome.org/show_bug.cgi?id=636252 --- js/misc/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/misc/util.js b/js/misc/util.js index 7c1485836..3ba2b7d79 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -14,7 +14,7 @@ const _notTrailingJunk = '[^\\s`!()\\[\\]{};:\'\\".,<>?\u00AB\u00BB\u201C\u201D\ const _urlRegexp = new RegExp( '\\b(' + '(?:' + - '[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])' + // scheme:data + '[a-z][\\w-]+://' + // scheme:// '|' + 'www\\d{0,3}[.]' + // www. '|' +