aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Camden <sterling@camdensoftware.com>2010-09-11 11:35:22 -0700
committerSterling Camden <sterling@camdensoftware.com>2010-09-11 11:35:22 -0700
commit544b52b35765112ce13df58d407baebe817f3ed3 (patch)
tree5511d1d39b683b377f37ae3104b391780b9538a4
parentb9235756624ff43929e2c7c2b5d11508b9e86925 (diff)
More formatting for 80 columns.
-rw-r--r--url-picker11
1 files changed, 7 insertions, 4 deletions
diff --git a/url-picker b/url-picker
index 3f7eabe..a9459b5 100644
--- a/url-picker
+++ b/url-picker
@@ -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 {