[Xfce4-commits] r30198 - terminal/trunk/terminal

Nick Schermer nick at xfce.org
Sun Jul 5 16:30:04 CEST 2009


Author: nick
Date: 2009-07-05 14:30:04 +0000 (Sun, 05 Jul 2009)
New Revision: 30198

Modified:
   terminal/trunk/terminal/terminal-widget.c
Log:
Allow ' characters in URL regexes.

This makes links like 
http://www.google.com/search?btnI=I%27m+Feeling+Lucky
work.


Modified: terminal/trunk/terminal/terminal-widget.c
===================================================================
--- terminal/trunk/terminal/terminal-widget.c	2009-07-05 14:25:54 UTC (rev 30197)
+++ terminal/trunk/terminal/terminal-widget.c	2009-07-05 14:30:04 UTC (rev 30198)
@@ -47,7 +47,7 @@
 #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?:|webcal:)"
 #define USERPASS        USERCHARS_CLASS "+(?:" PASSCHARS_CLASS "+)?"




More information about the Xfce4-commits mailing list