From: Amitai Schlair Date: Sun, 8 May 2016 22:26:15 +0000 (-0400) Subject: Detect image type from .JPG just like .jpg (etc.). X-Git-Tag: debian/3.20120629.2+deb7u2~42 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/9da467f063231185de7b336c36a62c08d1258ff4?ds=sidebyside Detect image type from .JPG just like .jpg (etc.). --- 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 {