diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/phishing.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua index cd2288067..e76ffc79a 100644 --- a/src/plugins/lua/phishing.lua +++ b/src/plugins/lua/phishing.lua @@ -248,8 +248,8 @@ end local function rspamd_str_split_fun(s, sep, func) local lpeg = require "lpeg" sep = lpeg.P(sep) - local elem = lpeg.C((1 - sep)^0 / func) - local p = lpeg.C(elem * (sep * elem)^0) -- make a table capture + local elem = lpeg.P((1 - sep)^0 / func) + local p = lpeg.P(elem * (sep * elem)^0) return p:match(s) end |