--- rxvt-unicode/src/perl/selection 2006/01/03 21:36:15 1.10 +++ rxvt-unicode/src/perl/selection 2006/01/06 17:03:14 1.13 @@ -12,16 +12,16 @@ 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|&;<>()]+ | \\. - | " ([^\\"]+ | \\. )* " + | " (?: [^\\"]+ | \\. )* " | ' [^']* ' )+ )}xs,