[console] terminal: Allow man: links containing hyphens



commit 2a5ea5139f872cce20a2583a992becb87b023b24
Author: Jeremy Bicha <jeremy bicha canonical com>
Date:   Tue Jun 7 10:58:31 2022 -0400

    terminal: Allow man: links containing hyphens
    
    See https://gitlab.gnome.org/GNOME/gnome-terminal/-/commit/c089b0583

 src/kgx-terminal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/kgx-terminal.c b/src/kgx-terminal.c
index fc61dbd..d51020b 100644
--- a/src/kgx-terminal.c
+++ b/src/kgx-terminal.c
@@ -59,7 +59,7 @@ static const gchar* links[KGX_TERMINAL_N_LINK_REGEX] = {
   "(?:www|ftp)" HOSTCHARS_CLASS "*\\." HOST PORT URLPATH,
   "(?:callto:|h323:|sip:)" USERCHARS_CLASS "[" USERCHARS ".]*(?:" PORT "/[a-z0-9]+)?\\@" HOST,
   "(?:mailto:)?" USERCHARS_CLASS "[" USERCHARS ".]*\\@" HOSTCHARS_CLASS "+\\." HOST,
-  "(?:news:|man:|info:)[[:alnum:]\\Q^_{|}~!\"#$%&'()*+,./;:=?`\\E]+"
+  "(?:news:|man:|info:)[-[:alnum:]\\Q^_{|}~!\"#$%&'()*+,./;:=?`\\E]+"
 };
 
 /*       Regex adapted from TerminalWidget.vala in Pantheon Terminal       */


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