From 31fb0be28e7764fad7b7cb99d84fe8e015a8408c Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 18 Aug 2014 18:30:48 +0200 Subject: [PATCH] Add colon to PATHCHARS_CLASS for url detection. --- src/terminal-screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal-screen.c b/src/terminal-screen.c index 91d503f..2f13adc 100644 --- a/src/terminal-screen.c +++ b/src/terminal-screen.c @@ -157,7 +157,7 @@ static guint signals[LAST_SIGNAL]; #define HOSTCHARS_CLASS "[-[:alnum:]]" #define HOST HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*" #define PORT "(?:\\:[[:digit:]]{1,5})?" -#define PATHCHARS_CLASS "[-[:alnum:]\\Q_$.+!*,;@&=?/~#%\\E]" +#define PATHCHARS_CLASS "[-[:alnum:]\\Q_$.+!*,:;@&=?/~#%\\E]" #define PATHTERM_CLASS "[^\\Q]'.}>) \t\r\n,\"\\E]" #define SCHEME "(?:news:|telnet:|nntp:|file:\\/|https?:|ftps?:|sftp:|webcal:)" #define USERPASS USERCHARS_CLASS "+(?:" PASSCHARS_CLASS "+)?"