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.20141016.4~2^2~5 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/db18b3fd8e68e4f289a5c042b72faa7441e8e183?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 {