summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <lookshe@fumuga.com>2012-04-16 20:57:51 +0200
committerlookshe <lookshe@fumuga.com>2012-04-16 20:57:51 +0200
commitaa622c626e94895e0f952f2310220684881cecd9 (patch)
tree481b248f2a26669b0fd699f00d945b9508937ba0
parentc6ffd3e337bd78f4ebec45e9bf8565cf7a3efb7e (diff)
fix for new table of http://www.file-extensions.org
-rw-r--r--file.pl6
1 files 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;
}