aboutsummaryrefslogtreecommitdiff
path: root/url-picker
diff options
context:
space:
mode:
Diffstat (limited to 'url-picker')
-rw-r--r--url-picker4
1 files changed, 2 insertions, 2 deletions
diff --git a/url-picker b/url-picker
index fab9359..57bfd11 100644
--- a/url-picker
+++ b/url-picker
@@ -2,7 +2,7 @@
# Author: Chip Camden <sterling@camdensoftware.com>
-my $url =
+my $re_url =
qr{
(?:https?://|ftp://|news://|mailto:|file://|\bwww\.)
[\w\-\@;\/?:&=%\$.+!*\x27,~#]*
@@ -25,7 +25,7 @@ sub on_user_command {
my $label_rend = $self->get_rend("label", urxvt::OVERLAY_RSTYLE);
my $label_urls = sub {
my @overlays;
- while ($text =~ /$url/g) {
+ while ($text =~ /$re_url/g) {
my $ndx = $-[0];
my $href = $&;
my $col = 0;