From: Steinar H. Gunderson Date: Sun, 30 Jul 2006 14:12:05 +0000 (+0200) Subject: Improve flash/no flash detection. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=477d42570558e6d4f197d80ac345d20fbcaef789 Improve flash/no flash detection. --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index d03f46f..c6f1c5b 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -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'};