From 05a665fce964766bbccf28fc93039968abef4d3b Mon Sep 17 00:00:00 2001 From: mirtlecn Date: Fri, 29 Nov 2024 02:32:59 +0800 Subject: [PATCH] =?UTF-8?q?chore(search.lua):=20=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=B8=8A=E6=B8=B8=20lua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/search.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/search.lua b/lua/search.lua index 6345a95..153c061 100755 --- a/lua/search.lua +++ b/lua/search.lua @@ -81,7 +81,7 @@ end -- 通过 reverse db 查询(以字查码,然后比对辅码是否相同,快,但只能匹配未经算法转换的码) local function reverse_lookup( code_projection, db_table, wildcard, text, s, global_match ) - if wildcard then s = s:gsub( wildcard, '.+' ) end + if wildcard then s = s:gsub( wildcard, '.*' ) end if code_projection then -- old librime do not return original string when apply failed local p = code_projection:apply( s, true )