--- rxvt-unicode/src/perl/selection 2006/01/03 21:36:15 1.10 +++ rxvt-unicode/src/perl/selection 2006/01/05 01:07:31 1.12 @@ -12,14 +12,14 @@ my @patterns = ( # 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 + (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+ + [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27(),~] # do not include a trailing dot, its wrong too often )}x, # shell-like argument quoting - qr{\G\s*( + qr{\G [\ \t|&;<>()] *( (?: - [^"'\\ \t]+ + [^\\"'\ \t|&;<>()]+ | \\. | " ([^\\"]+ | \\. )* " | ' [^']* '