From 89af9ecc575c3e7223b0e6bea57f82872f5caa9f Mon Sep 17 00:00:00 2001 From: Amitai Schlair Date: Sun, 8 May 2016 18:26:15 -0400 Subject: Detect image type from .JPG just like .jpg (etc.). --- IkiWiki/Plugin/img.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index c3dc41474..740c44f96 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -89,7 +89,7 @@ sub preprocess (@) { my $extension; my $format; - if ($base =~ m/\.([a-z0-9]+)$/) { + if ($base =~ m/\.([a-z0-9]+)$/is) { $extension = $1; } else { -- cgit v1.2.3