Skip to content

Commit

Permalink
[Minor] Be more strict when checking for text parts
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Oct 7, 2019
1 parent e07f607 commit d6ea209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib/lua_magic/heuristics.lua
Expand Up @@ -336,7 +336,7 @@ exports.text_part_heuristic = function(part, log_obj)
end
lua_util.debugm(N, log_obj, "text part check: %s printable, %s non-printable, %s total",
tlen - non_printable, non_printable, tlen)
if non_printable / tlen > 0.0625 then
if non_printable / tlen > 0.0078125 then
return false
end

Expand Down

0 comments on commit d6ea209

Please sign in to comment.