aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic/patterns.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-07 11:41:28 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-07 11:41:28 +0100
commit662145d0554de5e769b92dab2d41173a98adcee5 (patch)
treeec28311a0bce6181f248ba7b50304293ad764e44 /lualib/lua_magic/patterns.lua
parentbbd88232db43d18f5e0de5a6502848d4074621c5 (diff)
downloadrspamd-662145d0554de5e769b92dab2d41173a98adcee5.tar.gz
rspamd-662145d0554de5e769b92dab2d41173a98adcee5.zip
[Minor] Reformat all Lua code, no functional changes
Diffstat (limited to 'lualib/lua_magic/patterns.lua')
-rw-r--r--lualib/lua_magic/patterns.lua12
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,
},
}