aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-02 09:21:16 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-02 09:21:16 +0200
commit109772c183f4e7d07dd06fdf44664d54b101551f (patch)
treeb2fa902891ae6d5ef2ca39a7c4d47d9aca6fa552
parent1c7abb93eb39417fcf81c67875bfd804f3458a1a (diff)
Better name for the url regex.
-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;