chore(search.lua): 同步上游 lua

This commit is contained in:
mirtlecn
2024-11-29 02:32:59 +08:00
parent bba433a9c1
commit 05a665fce9

View File

@@ -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 )