Browse Source

[Minor] fix lower transformation for utf symbols

tags/3.3
Pavel Podkorytov 2 years ago
parent
commit
fbb7db65a5
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lualib/lua_selectors/transforms.lua

+ 2
- 1
lualib/lua_selectors/transforms.lua View File

@@ -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',
},

Loading…
Cancel
Save