diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-16 19:12:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 19:12:59 +0000 |
commit | ae73d813970522f5f3de5399ddde0f1f367c9479 (patch) | |
tree | 44e688977cc8bccd39d8aa6a56009889a5342548 /contrib | |
parent | 0daf76ab882d2e2bda63a507e075ca05b59ee7f4 (diff) | |
parent | 68badebdac453aef0f8bc5af96e9a289aefc02e5 (diff) | |
download | rspamd-ae73d813970522f5f3de5399ddde0f1f367c9479.tar.gz rspamd-ae73d813970522f5f3de5399ddde0f1f367c9479.zip |
Merge pull request #3553 from fatalbanana/byte
[Minor] rspamd_text:byte() metamethod
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/lua-fun/fun.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lua-fun/fun.lua b/contrib/lua-fun/fun.lua index e16fe07ae..2c712d306 100644 --- a/contrib/lua-fun/fun.lua +++ b/contrib/lua-fun/fun.lua @@ -96,7 +96,7 @@ local text_gen = function(param, state) if state > #param then return nil end - local r = string.char(param:at(state)) + local r = string.char(param:byte(state)) return state, r end |