aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-19 15:52:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-19 15:52:06 +0100
commit21a919a91f8019963215bf17cf4b8170a9735257 (patch)
treeed52c071ca1bd8e7896a31bd3ee74ca2d29f579d /src/plugins
parentd1985c35b31070c05947e3a25e8f3692cf6b9549 (diff)
downloadrspamd-21a919a91f8019963215bf17cf4b8170a9735257.tar.gz
rspamd-21a919a91f8019963215bf17cf4b8170a9735257.zip
Support slashed re in lua_regexp.
It is now possible to add slashed regexp to lua_regexp library, for example: /^something.+$/i
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/settings.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index a3b90395a..3561ccaa9 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -209,7 +209,7 @@ local function process_settings_table(tbl)
local start = string.sub(addr, 1, 1)
if start == '/' then
-- It is a regexp
- local re = regexp.create(string.sub(addr, 2))
+ local re = regexp.create(addr)
if re then
out['regexp'] = re
setmetatable(out, {