Skip to content

Commit

Permalink
fix: escape backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 22, 2024
1 parent 55751d8 commit 40eb4b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neotest-golang/lib/convert.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function M.to_lua_pattern(str)
"=",
"<",
">",
"\\",
}
for _, character in ipairs(special_characters) do
str = str:gsub("%" .. character, "%%%" .. character)
Expand Down

0 comments on commit 40eb4b6

Please sign in to comment.