Browse Source

[Minor] Add alzip magic numbers

tags/2.6
Vsevolod Stakhov 3 years ago
parent
commit
9ce8ae9803
2 changed files with 28 additions and 0 deletions
  1. 20
    0
      lualib/lua_magic/patterns.lua
  2. 8
    0
      lualib/lua_magic/types.lua

+ 20
- 0
lualib/lua_magic/patterns.lua View File

@@ -254,6 +254,26 @@ local patterns = {
},
}
},
egg = {
-- ALZip egg
matches = {
{
string = [[EGGA]],
weight = 60,
relative_position = 0,
},
}
},
alz = {
-- ALZip alz
matches = {
{
string = [[ALZ\x{01}]],
weight = 60,
relative_position = 0,
},
}
},
-- Apple is a 'special' child: this needs to be matched at the data tail...
dmg = {
matches = {

+ 8
- 0
lualib/lua_magic/types.lua View File

@@ -117,6 +117,14 @@ local types = {
ct = 'application/x-zoo',
type = 'archive',
},
egg = {
ct = 'application/x-egg',
type = 'archive',
},
alz = {
ct = 'application/x-alz',
type = 'archive',
},
xar = {
ct = 'application/x-xar',
type = 'archive',

Loading…
Cancel
Save