[PATCH] URL pattern matching in xfce4-terminal

Jeff Shipley jshipley at fastmail.fm
Tue Jul 23 06:38:55 CEST 2013


I tweaked a few things (added support for IPv6 recognition, expanded the
characters for USER recognition, but the most significant change is to
the regex for path recognition. This is successfully matching URLs such
as

www.example.com?foo=bar&baz=bin#fro(baz)

and seems to behave well with any false positives I throw at it.

This patch should resolve bugs
https://bugzilla.xfce.org/show_bug.cgi?id=7959 and
https://bugzilla.xfce.org/show_bug.cgi?id=9800

Let me know what you think?

Jeff Shipley (1):
  Added support for matching IPv6 addresses, fixed URL parsing, and
    adding some characters for email address parsing.

 terminal/terminal-widget.c |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

-- 
1.7.9.5

-- 
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are



More information about the Xfce4-dev mailing list