From aa622c626e94895e0f952f2310220684881cecd9 Mon Sep 17 00:00:00 2001 From: lookshe Date: Mon, 16 Apr 2012 20:57:51 +0200 Subject: fix for new table of http://www.file-extensions.org --- file.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/file.pl b/file.pl index 52c76a0..415199f 100644 --- a/file.pl +++ b/file.pl @@ -65,10 +65,8 @@ if ($found == 0) { } if ($morethanone =~/1/) { for ($i = 3; $i <= $#$list; $i++) { - if ($$list[$i] =~ /^.$type.+/i) { - last; - } - if ($$list[$i] !~ /^.$type$/i && $$list[$i] !~ /^Next matched file extensions?$/) { + if ($$list[$i] =~ /^.file extension $type$/i) { + $i++; print ".$type is $$list[$i]\n"; $found = 1; } -- cgit v1.2.3