fix: reduce_english_filter.lua 处理有空格的单词 #524
This commit is contained in:
parent
764a0f180e
commit
fd0984edeb
@ -25,7 +25,7 @@ function M.func(input, env)
|
|||||||
for cand in input:iter() do
|
for cand in input:iter() do
|
||||||
index = index + 1
|
index = index + 1
|
||||||
-- 找到要降低的英文词,加入 pending_cands
|
-- 找到要降低的英文词,加入 pending_cands
|
||||||
if cand.preedit:find(" ") or not cand.text:match("^[%a']+$") then
|
if cand.preedit:find(" ") or not cand.text:match("^[%a' ]+$") then
|
||||||
yield(cand)
|
yield(cand)
|
||||||
else
|
else
|
||||||
table.insert(pending_cands, cand)
|
table.insert(pending_cands, cand)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user