]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Detect image type from .JPG just like .jpg (etc.).
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Sun, 8 May 2016 22:26:15 +0000 (18:26 -0400)
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>
Sun, 8 May 2016 22:31:02 +0000 (18:31 -0400)
IkiWiki/Plugin/img.pm

index c3dc41474fed70094ba2837259b83fe76413b8a2..740c44f96045e19e5ed4f79dcca8db4369feeae6 100644 (file)
@@ -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 {