diff options
-rw-r--r-- | lualib/lua_magic/patterns.lua | 7 | ||||
-rw-r--r-- | lualib/lua_magic/types.lua | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index 8f4bc4092..0b5e556d1 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -371,6 +371,13 @@ local patterns = { }, } }, + dwg = { + matches = { + string = 'AC10[12][2-9]', + position = 6, + weight = 60, + } + }, } return patterns
\ No newline at end of file diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua index 32c7cd131..2b2545d87 100644 --- a/lualib/lua_magic/types.lua +++ b/lualib/lua_magic/types.lua @@ -241,6 +241,10 @@ local types = { type = 'image', ct = 'image/bmp', }, + dwg = { + type = 'image', + ct = 'image/vnd.dwg', + }, -- Text txt = { type = 'text', |