Skip to content

Commit

Permalink
Parse lines starting with "{" only (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
olzhasar authored Jan 27, 2024
1 parent d29d20d commit 2251361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest-go/output.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function M.marshal_gotest_output(lines)
local log = {}
local testfile, linenumber
for _, line in ipairs(lines) do
if line ~= "" then
if line ~= "" and line:sub(1, 1) == "{" then
local ok, parsed = pcall(vim.json.decode, line, { luanil = { object = true } })
if not ok then
log = vim.tbl_map(function(l)
Expand Down

0 comments on commit 2251361

Please sign in to comment.