diff options
Diffstat (limited to 'lualib/lua_magic/patterns.lua')
-rw-r--r-- | lualib/lua_magic/patterns.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index b1eb5ad4d..971ddd95f 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -27,13 +27,13 @@ local patterns = { matches = { { string = [[%PDF-[12]\.\d]], - position = {'<=', 1024}, + position = { '<=', 1024 }, weight = 60, heuristic = heuristics.pdf_format_heuristic }, { string = [[%FDF-[12]\.\d]], - position = {'<=', 1024}, + position = { '<=', 1024 }, weight = 60, heuristic = heuristics.pdf_format_heuristic }, @@ -103,7 +103,7 @@ local patterns = { -- PE part { string = [[PE\x{00}\x{00}]], - position = {'>=', 0x3c + 4}, + position = { '>=', 0x3c + 4 }, weight = 15, heuristic = heuristics.pe_part_heuristic, } @@ -131,7 +131,7 @@ local patterns = { matches = { { string = [[(?i)@\s*ECHO\s+OFF]], - position = {'>=', 0}, + position = { '>=', 0 }, weight = 60, }, } @@ -189,7 +189,7 @@ local patterns = { matches = { { hex = [[4d53434600000000]], -- Can be anywhere for SFX :( - position = {'>=', 8}, + position = { '>=', 8 }, weight = 60, }, } @@ -268,7 +268,7 @@ local patterns = { matches = { { string = [[\x{01}CD001\x{01}]], - position = {'>=', 0x8000 + 7}, -- first 32k is unused + position = { '>=', 0x8000 + 7 }, -- first 32k is unused weight = 60, }, } |