From fd0984edeb11d8695f1a598b89f6dd0a415b35eb Mon Sep 17 00:00:00 2001 From: Dvel Date: Sat, 21 Oct 2023 21:38:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20reduce=5Fenglish=5Ffilter.lua=20?= =?UTF-8?q?=E5=A4=84=E7=90=86=E6=9C=89=E7=A9=BA=E6=A0=BC=E7=9A=84=E5=8D=95?= =?UTF-8?q?=E8=AF=8D=20#524?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/reduce_english_filter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/reduce_english_filter.lua b/lua/reduce_english_filter.lua index 0db4e4c..cfb9600 100644 --- a/lua/reduce_english_filter.lua +++ b/lua/reduce_english_filter.lua @@ -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)