Comment 6 for bug 408315

Revision history for this message
In , Jshipley-2 (jshipley-2) wrote :

URL recognition seems to have a few problems (and seems to work mostly the same as gnome-terminal which isn't surprising since it looks like both applications use nearly identical regexes to match).

The opening character of a pair ('(', '<', '{', and '[') get added to the URL but terminate the URL. The exception to this is when they directly follow a '/' (not necessarily tailing, "http://www.foo.com/(whatisthis/more" would be recognized as "http://www.foo.com/"). This causes problems for wikipedia style links with '(' and ')' in them (https://bugzilla.xfce.org/show_bug.cgi?id=9800). The closing character of the pair does not get recognized as part of the URL.

Actually, it looks like any single character following a slash will be ignored.

http://www.foo.com/a matches http://www.foo.com/
http://www.foo.com/ab matches http://www.foo.com/ab

If the current regex can't be easily fixed, it may be worth looking into http://daringfireball.net/2010/07/improved_regex_for_matching_urls as a replacement.

I'm going to spend some time with this, and see if I can come up with a good patch.