From e15479d9231bad168ac318aa2cbb43c705bc547c Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Wed, 13 Jul 2011 21:53:34 +0400 Subject: fix https urls shortening --- tinyurl-tabcomplete/complete-tiny-url.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyurl-tabcomplete') 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 -- cgit v1.2.3