use replaceAll
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
98a81ffe0f
commit
9ff3370ff7
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ var artifactPath = test.NormalizeRelativePath("../test/data/sigstore-js-2.1.0.tg
|
|||
func expectedFilePath(tempDir string, digestWithAlg string) string {
|
||||
var filename string
|
||||
if runtime.GOOS == "windows" {
|
||||
filename = fmt.Sprintf("%s.jsonl", strings.Replace(digestWithAlg, ":", "-", 0))
|
||||
filename = fmt.Sprintf("%s.jsonl", strings.ReplaceAll(digestWithAlg, ":", "-"))
|
||||
} else {
|
||||
filename = fmt.Sprintf("%s.jsonl", digestWithAlg)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue