Fix many extensions detection

This commit is contained in:
Adam Stankiewicz
2020-09-28 03:00:01 +02:00
parent 692db4dc29
commit 6a086b0c79
5 changed files with 46 additions and 23 deletions

View File

@@ -747,10 +747,7 @@ def show_warnings(all_filetypes, expected_filetypes)
end]
for name, e in all_expected - all_handled
if all_handled.include?([name, e.split('/').last.gsub('*', '')])
next
end
if e.include?('*') && all_handled_regexps[name].match?(e)
if all_handled_regexps[name].match?(e)
next
end
puts "Missing for #{name}: #{e}"