Skip to content

Commit

Permalink
fix: escaping of []{} brackets were missing (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil authored Jun 28, 2024
1 parent 18c31a9 commit 2dcc9e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/neotest-golang/convert.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ function M.to_gotest_regex_pattern(test_name)
local special_characters = {
"(",
")",
"[",
"]",
"{",
"}",
}
for _, character in ipairs(special_characters) do
test_name = test_name:gsub("%" .. character, "\\" .. character)
Expand Down

0 comments on commit 2dcc9e9

Please sign in to comment.