Browse Source

[Minor] Be more strict when checking for text parts

tags/2.0
Vsevolod Stakhov 4 years ago
parent
commit
d6ea2092cd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lualib/lua_magic/heuristics.lua

+ 1
- 1
lualib/lua_magic/heuristics.lua View File

@@ -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


Loading…
Cancel
Save