Skip to content

Commit

Permalink
fix: regex characters applied twice
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 15, 2024
1 parent a17f388 commit 709164a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/neotest-golang/features/dap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ function M.setup_debugging(cwd)
end
end

--- @param test_name string
--- @param test_name_regex string
--- @return table | nil
function M.get_dap_config(test_name)
function M.get_dap_config(test_name_regex)
-- :help dap-configuration
local dap_config = {
type = "go",
name = "Neotest-golang",
request = "launch",
mode = "test",
program = "${fileDirname}",
args = { "-test.run", "^" .. test_name .. "$" },
args = { "-test.run", test_name_regex },
}

return dap_config
Expand Down

0 comments on commit 709164a

Please sign in to comment.