From: MikeLund Date: Wed, 6 Sep 2017 14:06:47 +0000 (+0200) Subject: Include https URLs in urlgrab.pl X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f8bd5bf43298198aa908a8340ea4cba8c795778c;p=irssi-scripts.irssi.org.git Include https URLs in urlgrab.pl --- diff --git a/scripts/urlgrab.pl b/scripts/urlgrab.pl index d322e0e..adbb770 100644 --- a/scripts/urlgrab.pl +++ b/scripts/urlgrab.pl @@ -9,7 +9,7 @@ use strict; use Irssi 20010120.0250 (); use vars qw($VERSION %IRSSI); -$VERSION = "0.3"; +$VERSION = "0.4"; %IRSSI = ( authors => 'David Leadbeater', contact => 'dgl@dgl.cx', @@ -46,7 +46,7 @@ sub url_cmd{ sub find_url { my $text = shift; - if($text =~ /((ftp|http):\/\/[a-zA-Z0-9\/\\\:\?\%\.\&\;=#\-\_\!\+\~]*)/i){ + if($text =~ /((ftp|http|https):\/\/[a-zA-Z0-9\/\\\:\?\%\.\&\;=#\-\_\!\+\~]*)/i){ return $1; }elsif($text =~ /(www\.[a-zA-Z0-9\/\\\:\?\%\.\&\;=#\-\_\!\+\~]*)/i){ return "http://".$1;