diff --git a/lua/neotest-golang/convert.lua b/lua/neotest-golang/convert.lua index 185c181c..e6eb1dfa 100644 --- a/lua/neotest-golang/convert.lua +++ b/lua/neotest-golang/convert.lua @@ -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)