Skip to content

Commit

Permalink
fix: correctly format capture to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Velka-DEV committed May 25, 2024
1 parent 164cf48 commit 93f1b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/core/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ func WriteResultToFile(result *CheckResult, info *CheckerInfo, basePath string)
for i, key := range keys {

if i == 0 {
sb.WriteString(fmt.Sprintf("|%s=%s", key, result.Captures[key]))
sb.WriteString(fmt.Sprintf("|%s=%v", key, result.Captures[key]))
continue
}
sb.WriteString(fmt.Sprintf(",%s=%s", key, result.Captures[key]))
sb.WriteString(fmt.Sprintf(",%s=%v", key, result.Captures[key]))
}

sb.WriteString(fmt.Sprintf("|%s", info.StartTime.Format("2006-01-02 15:04:05")))
Expand Down

0 comments on commit 93f1b37

Please sign in to comment.