mirror of
https://github.com/d0zingcat/rime-ice.git
synced 2026-05-13 15:09:58 +00:00
chore(search.lua): 同步上游 lua
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user