Hi,

I expect some "issues" with the URL perl matcher: for example, urls like
http://translate.google.com/#en|fr|nail are not well recognized due to the
'|' character. There is also some URL with '[', ']', '{' and '}' which are
not converted by browsers when copying them.

So I attached a small patch to this mail in order to fix it. I'm also
wondering if other characters like '^' or '`' should be appened, but
since I never saw them in an URL...

Thanks,

-- 
ubitux
--- a/perl/matcher
+++ b/perl/matcher
@@ -5,9 +5,9 @@
 my $url =
    qr{
       (?:https?://|ftp://|news://|mailto:|file://|\bwww\.)
-      [a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#]*
+      [a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#\|\{\}\[\]]*
       (
-         \([a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#]*\)| # Allow a pair of matched 
parentheses
+         \([a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#\|\{\}\[\]]*\)| # Allow a pair 
of matched parentheses
          [a-zA-Z0-9\-\@;\/?:&=%\$_+*~]  # exclude some trailing characters 
(heuristic)
       )+
    }x;
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to