look for opening [

(cherry picked from commit d9156bba3e)
This commit is contained in:
Mark Andrews 2015-10-06 19:40:01 +11:00
parent f014ce8ea4
commit f67969466f

View file

@ -322,7 +322,7 @@ foreach $file (keys %file_types) {
close(SOURCE) if (eof(SOURCE));
next;
}
if (/^<!DOCTYPE/) {
if (/^<!DOCTYPE.*\[$/) {
while (!eof(SOURCE)) {
$_ = <SOURCE>;
next if (eof(SOURCE));