--- rxvt-unicode/src/perl/selection 2006/01/03 21:08:39 1.9 +++ rxvt-unicode/src/perl/selection 2006/01/03 21:36:15 1.10 @@ -10,8 +10,11 @@ } my @patterns = ( - # urls - qr{ ([a-z0-9.+\-]+://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+) }x, + # urls, just a heuristic + qr{( + (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+ + [^.] # do not include a trailing dot, its wrong too often + )}x, # shell-like argument quoting qr{\G\s*(