diff --git a/lua/Trans/core/translate.lua b/lua/Trans/core/translate.lua index f9263ce..98fc94f 100644 --- a/lua/Trans/core/translate.lua +++ b/lua/Trans/core/translate.lua @@ -74,8 +74,10 @@ local strategy = { -- HACK : Core process logic local function process(opts) opts = init_opts(opts) - local str = opts.str - if not str or str == '' then return end + + + if not opts.str or opts.str == '' then return end + local str = opts.str:match("(%w+)") -- Find in cache