aboutsummaryrefslogtreecommitdiffstats
path: root/tinyurl-tabcomplete/complete-tiny-url.pl
diff options
context:
space:
mode:
authorricho <richo@psych0tik.net>2011-09-21 11:33:31 +0000
committerricho <richo@psych0tik.net>2011-09-21 11:33:31 +0000
commitc705a09d0fe81ac20497d17640792cdcaf5ec0d0 (patch)
treeaaa382f548260902c96274e75c7a184db0e7cf8d /tinyurl-tabcomplete/complete-tiny-url.pl
parentMerge branch 'master' into richoH-dev (diff)
parentRemove deprecated docs (diff)
downloadirssi-scripts-c705a09d0fe81ac20497d17640792cdcaf5ec0d0.tar.gz
irssi-scripts-c705a09d0fe81ac20497d17640792cdcaf5ec0d0.zip
Merge branch 'master' into richoH-dev
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..ad43c5e 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([a-z][\w-]+:(?:/{1,3}|[a-z0-9%]));
return $uri;
} else {
# no match