[gnome-shell] Only recognize common url schemes in notification messages



commit 608818fa9f3f748d92e6881ab3d8f3c093e197cd
Author: Monica Chelliah <chell22m mtholyoke edu>
Date:   Sun Apr 14 16:15:04 2013 -0400

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/misc/util.js b/js/misc/util.js
index 15edc37..3864ae5 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.
             '|' +


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]