summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-10-12 12:38:44 +0200
committerinfirit <[email protected]>2014-10-12 12:38:44 +0200
commit74761776813fb26472f11711ca4b7b02df2b5e83 (patch)
treea0d55196bb6befe7f434cbd7ce9a6bb8439f5344 /src
parentb57d3a8be28e37ba3f6f64e16c5800247c22a4ef (diff)
downloadmate-terminal-74761776813fb26472f11711ca4b7b02df2b5e83.tar.bz2
mate-terminal-74761776813fb26472f11711ca4b7b02df2b5e83.tar.xz
Add colon to PATHTERM_CLASS for url detection.
Thanks to leigh123linux for pointing it out.
Diffstat (limited to 'src')
-rw-r--r--src/terminal-screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 8b587b5..664e0c1 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -157,7 +157,7 @@ static guint signals[LAST_SIGNAL];
#define HOST HOSTCHARS_CLASS "+(\\." HOSTCHARS_CLASS "+)*"
#define PORT "(?:\\:[[:digit:]]{1,5})?"
#define PATHCHARS_CLASS "[-[:alnum:]\\Q_$.+!*,:;@&=?/~#%\\E]"
-#define PATHTERM_CLASS "[^\\Q]'.}>) \t\r\n,\"\\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 "+)?"
#define URLPATH "(?:(/"PATHCHARS_CLASS"+(?:[(]"PATHCHARS_CLASS"*[)])*"PATHCHARS_CLASS"*)*"PATHTERM_CLASS")?"