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.20160509~8 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/89af9ecc575c3e7223b0e6bea57f82872f5caa9f?hp=e24e6fed623661ce46bd739d1c9be0876d67baaa 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 {