Skip to content

Commit

Permalink
chore(search.lua): 同步上游 lua
Browse files Browse the repository at this point in the history
  • Loading branch information
mirtlecn committed Nov 28, 2024
1 parent bba433a commit 05a665f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 05a665f

Please sign in to comment.