Skip to content

Commit

Permalink
fix(previewer): regex to magic pattern conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Aug 16, 2024
1 parent 0183772 commit 253c6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fzf-lua/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function M.rg_escape(str)
end

function M.regex_to_magic(str)
return [[\v]] .. str
return [[\v]] .. str:gsub([[\\]], [[\]]):gsub("=", [[\=]])
end

function M.sk_escape(str)
Expand Down

0 comments on commit 253c6ff

Please sign in to comment.