aboutsummaryrefslogtreecommitdiffstats
path: root/tinyurl-tabcomplete/complete-tiny-url.pl
diff options
context:
space:
mode:
authorArtem Savkov <artem.savkov@gmail.com>2011-07-13 17:53:34 +0000
committerArtem Savkov <artem.savkov@gmail.com>2011-07-13 17:53:34 +0000
commite15479d9231bad168ac318aa2cbb43c705bc547c (patch)
tree8b97a567cc3ed2e02df6efa303ad2eff760cd1a4 /tinyurl-tabcomplete/complete-tiny-url.pl
parentrebuilt README (diff)
downloadirssi-scripts-e15479d9231bad168ac318aa2cbb43c705bc547c.tar.gz
irssi-scripts-e15479d9231bad168ac318aa2cbb43c705bc547c.zip
fix https urls shortening
Diffstat (limited to 'tinyurl-tabcomplete/complete-tiny-url.pl')
-rw-r--r--tinyurl-tabcomplete/complete-tiny-url.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyurl-tabcomplete/complete-tiny-url.pl b/tinyurl-tabcomplete/complete-tiny-url.pl
index b2d448f..45a00c0 100644
--- a/tinyurl-tabcomplete/complete-tiny-url.pl
+++ b/tinyurl-tabcomplete/complete-tiny-url.pl
@@ -123,7 +123,7 @@ sub match_uri {
if ($text =~ $regex) {
my $uri = $1;
# shorten needs the http prefix or it'll treat it as a relative link.
- $uri = 'http://' . $uri if $uri !~ m(http://);
+ $uri = 'http://' . $uri if $uri !~ m(https?://);
return $uri;
} else {
# no match