Skip to content

Commit 7d66cd8

Browse files
joshbodeibhagwan
authored andcommitted
fix: add % to the list of very magic special characters
1 parent 519f765 commit 7d66cd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/fzf-lua/utils.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ end
223223

224224
function M.regex_to_magic(str)
225225
-- Convert regex to "very magic" pattern, basically a regex
226-
-- with special meaning for "=&<>", `:help /magic`
227-
return [[\v]] .. str:gsub("[=&@<>]", function(x)
226+
-- with special meaning for "%=&<>", `:help /magic`
227+
return [[\v]] .. str:gsub("[%%=&@<>]", function(x)
228228
return "\\" .. x
229229
end)
230230
end

0 commit comments

Comments
 (0)