diff options
Diffstat (limited to 'conf/lua/hfilter.lua')
-rw-r--r-- | conf/lua/hfilter.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/conf/lua/hfilter.lua b/conf/lua/hfilter.lua index 128c6612c..ef0c9cb22 100644 --- a/conf/lua/hfilter.lua +++ b/conf/lua/hfilter.lua @@ -55,8 +55,7 @@ local function trim1(s) end local function check_regexp(str, regexp_text) - local re = rspamd_regexp.get_cached(regexp_text) - if not re then re = rspamd_regexp.create(regexp_text, 'i') end + local re = rspamd_regexp.create_cached(regexp_text, 'i') if re:match(str) then return true end return false end |