Improve flash/no flash detection.
[pr0n] / perl / Sesse / pr0n / Common.pm
index d03f46f1f01a01a10b656bb0efeb53aeb1adfb6e..c6f1c5b59fb87b89c375cde62b3967178dbe4ed8 100644 (file)
@@ -438,9 +438,11 @@ sub make_infobox {
        }
 
        if (defined($info->{'Flash'})) {
-               if ($info->{'Flash'} =~ /did not fire/ || $info->{'Flash'} =~ /No Flash/) {
+               if ($info->{'Flash'} =~ /did not fire/i ||
+                   $info->{'Flash'} =~ /no flash/i ||
+                   $info->{'Flash'} =~ /not fired/i)  {
                        push @lines, "No flash";
-               } elsif ($info->{'Flash'} =~ /fired/) {
+               } elsif ($info->{'Flash'} =~ /fired/i) {
                        push @lines, "Flash";
                } else {
                        push @lines, $info->{'Flash'};