chore: lua 加上缺失的 local

This commit is contained in:
Dvel
2024-01-02 20:59:23 +08:00
parent e5d122935f
commit 26d07f6239
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ local function add_space_to_english_word(input)
end
-- 在候选项上屏时触发的函数
function en_spacer(input, env)
local function en_spacer(input, env)
for cand in input:iter() do
if cand.text:match("^[%a']+[%a']*$") then
-- 如果候选项是纯英文单词,则在输入后添加一个空格