From cc29ef4bb22c0699abdfc0e148aaa41ef45b7991 Mon Sep 17 00:00:00 2001 From: "Difrex(Denis Zheleztsov)" Date: Mon, 11 Aug 2014 11:58:58 +0400 Subject: [PATCH] ii:// links full support --- II/T.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/II/T.pm b/II/T.pm index 3c60600..8204cfb 100644 --- a/II/T.pm +++ b/II/T.pm @@ -190,7 +190,8 @@ sub pre { =~ s/\[img (.+)\]/<\/a>/g; # ii uri - $post =~ s/ii:\/\/(.{20})\s/$1<\/a>/g; + $post =~ s/ii:\/\/(\w+(\.)?\w+\.\d{2,4})/$1<\/a>/g; + $post =~ s/ii:\/\/(\w{20})/$1<\/a>/g; # Not are regexp parsing my $pre = 0;