summaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_magic/heuristics.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua
index 7eae38ffc..8f287acbf 100644
--- a/lualib/lua_magic/heuristics.lua
+++ b/lualib/lua_magic/heuristics.lua
@@ -529,6 +529,12 @@ exports.text_part_heuristic = function(part, log_obj, _)
return 'html', 21
end
+ if msubtype:lower() == 'csv' then
+ if validate_csv(part, content, log_obj) then
+ return 'csv', 40
+ end
+ end
+
-- Extension stuff
local function has_extension(file, ext)
local ext_len = ext:len()