--- rxvt-unicode/src/perl/selection 2006/01/04 20:43:38 1.11 +++ rxvt-unicode/src/perl/selection 2006/01/06 17:03:14 1.13 @@ -12,8 +12,8 @@ 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 @@ -21,7 +21,7 @@ (?: [^\\"'\ \t|&;<>()]+ | \\. - | " ([^\\"]+ | \\. )* " + | " (?: [^\\"]+ | \\. )* " | ' [^']* ' )+ )}xs,