[gnome-terminal/gnome-3-10] screen: Allow man: links containing hyphens



commit 13842c2e70a3018b2da09273d16eadd9666dfe74
Author: Christian Persch <chpe gnome org>
Date:   Thu Dec 12 13:26:11 2013 +0100

    screen: Allow man: links containing hyphens
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1040713
    (cherry picked from commit c089b0583ddd5acc3e9d72c45f94747e6316239a)

 src/terminal-screen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index d28ced2..decf61e 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -184,7 +184,7 @@ static const TerminalRegexPattern url_regex_patterns[] = {
   { "(?:www|ftp)" HOSTCHARS_CLASS "*\\." HOST PORT URLPATH , FLAVOR_DEFAULT_TO_HTTP, G_REGEX_CASELESS  },
   { "(?:callto:|h323:|sip:)" USERCHARS_CLASS "[" USERCHARS ".]*(?:" PORT "/[a-z0-9]+)?\\@" HOST, 
FLAVOR_VOIP_CALL, G_REGEX_CASELESS  },
   { "(?:mailto:)?" USERCHARS_CLASS "[" USERCHARS ".]*\\@" HOSTCHARS_CLASS "+\\." HOST, FLAVOR_EMAIL, 
G_REGEX_CASELESS  },
-  { "(?:news:|man:|info:)[[:alnum:]\\Q^_{|}~!\"#$%&'()*+,./;:=?`\\E]+", FLAVOR_AS_IS, G_REGEX_CASELESS  },
+  { "(?:news:|man:|info:)[-[:alnum:]\\Q^_{|}~!\"#$%&'()*+,./;:=?`\\E]+", FLAVOR_AS_IS, G_REGEX_CASELESS  },
 };
 
 static GRegex **url_regexes;


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