ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/mark-urls
(Generate patch)

Comparing rxvt-unicode/src/perl/mark-urls (file contents):
Revision 1.1 by root, Thu Jan 5 01:04:10 2006 UTC vs.
Revision 1.2 by root, Thu Jan 5 01:07:31 2006 UTC

1#! perl 1#! perl
2 2
3# same url as used in "selection" 3# same url as used in "selection"
4my $url = 4my $url =
5 qr{( 5 qr{(
6 (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+ 6 (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+
7 [^.] # do not include a trailing dot, its wrong too often 7 [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27(),~] # do not include a trailing dot, its wrong too often
8 )}x; 8 )}x;
9 9
10sub on_add_lines { 10sub on_add_lines {
11 my ($term, $str) = @_; 11 my ($term, $str) = @_;
12 12

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines