diff options
author | Pavel Podkorytov <pod.pavel@gmail.com> | 2022-05-20 15:30:54 +0500 |
---|---|---|
committer | Pavel Podkorytov <pod.pavel@gmail.com> | 2022-05-20 15:30:54 +0500 |
commit | fbb7db65a5cf50dc642550688407e724d56ebe34 (patch) | |
tree | 10a7d1bc7c117032813239c026b0afa88a9533d1 /lualib/lua_selectors | |
parent | 1a673e2fbe24882365ad15636283e19a404623d1 (diff) | |
download | rspamd-fbb7db65a5cf50dc642550688407e724d56ebe34.tar.gz rspamd-fbb7db65a5cf50dc642550688407e724d56ebe34.zip |
[Minor] fix lower transformation for utf symbols
Diffstat (limited to 'lualib/lua_selectors')
-rw-r--r-- | lualib/lua_selectors/transforms.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_selectors/transforms.lua b/lualib/lua_selectors/transforms.lua index 28ae2c315..aed5b246d 100644 --- a/lualib/lua_selectors/transforms.lua +++ b/lualib/lua_selectors/transforms.lua @@ -17,6 +17,7 @@ limitations under the License. local fun = require 'fun' local lua_util = require "lua_util" local rspamd_util = require "rspamd_util" +local rspamd_text = require "rspamd_text" local ts = require("tableshape").types local logger = require 'rspamd_logger' local common = require "lua_selectors/common" @@ -36,7 +37,7 @@ local transform_function = { }, ['map_type'] = 'string', ['process'] = function(inp, _) - return inp:lower(),'string' + return rspamd_text.fromstring(inp):lower(true),'string' end, ['description'] = 'Returns the lowercased string', }, |