fix: reduce_english_filter.lua 不处理非英文单词 fix #505
This commit is contained in:
parent
9b1ebf0fb7
commit
b6655c82fb
@ -25,7 +25,7 @@ function M.func(input, env)
|
||||
for cand in input:iter() do
|
||||
index = index + 1
|
||||
-- 定位匹配的英文词
|
||||
if not string.find(cand.preedit, " ") then
|
||||
if not string.find(cand.preedit, " ") and not string.match(cand.text, "%A") then
|
||||
table.insert(pending_cands, cand)
|
||||
else
|
||||
yield(cand)
|
||||
|
Loading…
Reference in New Issue
Block a user