]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Include https URLs in urlgrab.pl
authorMikeLund <redacted>
Wed, 6 Sep 2017 14:06:47 +0000 (16:06 +0200)
committerGitHub <redacted>
Wed, 6 Sep 2017 14:06:47 +0000 (16:06 +0200)
scripts/urlgrab.pl

index d322e0e7bc51ba4ef12c41a47cab65fa0dff552c..adbb770e10d787830c2c9d0ae43db35dcfe3a9ea 100644 (file)
@@ -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;
git clone https://git.99rst.org/PROJECT