From 608818fa9f3f748d92e6881ab3d8f3c093e197cd Mon Sep 17 00:00:00 2001 From: Monica Chelliah Date: Sun, 14 Apr 2013 16:15:04 -0400 Subject: [PATCH] Only recognize common url schemes in notification messages Before the fix, the message tray highlighted all urls containing "://", even invalid ones. This change fixes this by have the message tray highlight only the urls with http, https, ftp schemes. Credit goes to: Phuong Vu, Liye Fu, Monica Chelliah, Owen Taylor https://bugzilla.gnome.org/show_bug.cgi?id=661225 --- 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 15edc37ef..3864ae59f 100644 --- a/js/misc/util.js +++ b/js/misc/util.js @@ -18,7 +18,7 @@ const _urlRegexp = new RegExp( '(^|' + _leadingJunk + ')' + '(' + '(?:' + - '[a-z][\\w-]+://' + // scheme:// + '(?:http|https|ftp)://' + // scheme:// '|' + 'www\\d{0,3}[.]' + // www. '|' +