Skip to content

Commit

Permalink
[Minor] Add .dwg files support
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 23, 2019
1 parent 3402e77 commit 34036d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lualib/lua_magic/patterns.lua
Expand Up @@ -371,6 +371,13 @@ local patterns = {
},
}
},
dwg = {
matches = {
string = 'AC10[12][2-9]',
position = 6,
weight = 60,
}
},
}
return patterns
4 changes: 4 additions & 0 deletions lualib/lua_magic/types.lua
Expand Up @@ -241,6 +241,10 @@ local types = {
type = 'image',
ct = 'image/bmp',
},
dwg = {
type = 'image',
ct = 'image/vnd.dwg',
},
-- Text
txt = {
type = 'text',
Expand Down

0 comments on commit 34036d3

Please sign in to comment.