mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-05 13:32:54 -05:00
Replace all go version attributes.
This commit is contained in:
@ -297,7 +297,7 @@ func loadTestReport(name string) (string, error) {
|
||||
}
|
||||
|
||||
// replace value="1.0" With actual version
|
||||
report := strings.Replace(string(contents), `value="1.0"`, fmt.Sprintf(`value="%s"`, runtime.Version()), 1)
|
||||
report := strings.Replace(string(contents), `value="1.0"`, fmt.Sprintf(`value="%s"`, runtime.Version()), -1)
|
||||
|
||||
return report, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user