diff options
author | Sterling Camden <sterling@camdensoftware.com> | 2010-09-11 11:35:22 -0700 |
---|---|---|
committer | Sterling Camden <sterling@camdensoftware.com> | 2010-09-11 11:35:22 -0700 |
commit | 544b52b35765112ce13df58d407baebe817f3ed3 (patch) | |
tree | 5511d1d39b683b377f37ae3104b391780b9538a4 | |
parent | b9235756624ff43929e2c7c2b5d11508b9e86925 (diff) |
More formatting for 80 columns.
-rw-r--r-- | url-picker | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -6,9 +6,11 @@ my $url = qr{ (?:https?://|ftp://|news://|mailto:|file://|\bwww\.) [a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#]* - ( - \([a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#]*\)| # Allow a pair of matched parentheses - [a-zA-Z0-9\-\@;\/?:&=%\$_+*~] # exclude some trailing characters (heuristic) + ( + # Allow a pair of matched parentheses + \([a-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27,~#]*\)| + # exclude some trailing characters (heuristic) + [a-zA-Z0-9\-\@;\/?:&=%\$_+*~] )+ }x; @@ -109,7 +111,8 @@ sub update { my @matches; while (++$ndx <= $size) { my $overlay = $labels->{$ndx}; - if (($len == 0) || (($len <= length($ndx)) && (substr($ndx,0,$len) eq $p->{buffer}))) { + if (($len == 0) || + (($len <= length($ndx)) && (substr($ndx,0,$len) eq $p->{buffer}))) { $overlay->show; unshift @matches,$hrefs->{$ndx}; } else { |