Skip to content

Commit

Permalink
fix: reduce_english_filter.lua 处理有空格的单词 #524
Browse files Browse the repository at this point in the history
  • Loading branch information
iDvel committed Oct 21, 2023
1 parent 764a0f1 commit fd0984e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/reduce_english_filter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function M.func(input, env)
for cand in input:iter() do
index = index + 1
-- 找到要降低的英文词,加入 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)
else
table.insert(pending_cands, cand)
Expand Down

0 comments on commit fd0984e

Please sign in to comment.