diff options
author | Alexander Nedotsukov <bland@FreeBSD.org> | 2004-11-18 12:54:08 +0000 |
---|---|---|
committer | Alexander Nedotsukov <bland@FreeBSD.org> | 2004-11-18 12:54:08 +0000 |
commit | 3834ed8401b3003ca207b90499fd95284f6b3986 (patch) | |
tree | 84ef765120572d31c76b342aea245189390fcda8 /x11/gnome-terminal/files/patch-src::terminal-screen.c | |
parent | Update to 2.17 (diff) |
Fix regexps for URL matching.
PR: 74058
SUbmitted by: Jean-Yves Lefort <jylefort@brutele.be>
Diffstat (limited to '')
-rw-r--r-- | x11/gnome-terminal/files/patch-src::terminal-screen.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/x11/gnome-terminal/files/patch-src::terminal-screen.c b/x11/gnome-terminal/files/patch-src::terminal-screen.c new file mode 100644 index 000000000000..aafbb3a44ce0 --- /dev/null +++ b/x11/gnome-terminal/files/patch-src::terminal-screen.c @@ -0,0 +1,24 @@ +--- src/terminal-screen.c.orig Thu Nov 18 12:45:11 2004 ++++ src/terminal-screen.c Thu Nov 18 12:46:31 2004 +@@ -246,16 +246,16 @@ + #define USER "[" USERCHARS "]+(:["PASSCHARS "]+)?" + + terminal_widget_match_add (screen->priv->term, +- "\\<(" SCHEME "://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?" +- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?\\>", FLAVOR_AS_IS); ++ "[[:<:]](" SCHEME "://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?" ++ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?[[:>:]]", FLAVOR_AS_IS); + + terminal_widget_match_add (screen->priv->term, +- "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?" +- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?\\>", FLAVOR_DEFAULT_TO_HTTP); ++ "[[:<:]](www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?" ++ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?[[:>:]]", FLAVOR_DEFAULT_TO_HTTP); + + terminal_widget_match_add (screen->priv->term, + +- "\\<(mailto:)?[a-z0-9]+@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>", FLAVOR_MAILTO); ++ "[[:<:]](mailto:)?[a-z0-9]+@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+[[:>:]]", FLAVOR_MAILTO); + + terminal_screen_setup_dnd (screen); + |