1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

fix(protecodeExecuteScan): correct regex pattern for replacing spaces (#3941)

This commit is contained in:
Oliver Nocon
2022-08-05 16:16:36 +02:00
committed by GitHub
parent da8cda6dbe
commit 43bbea477c

View File

@@ -129,7 +129,7 @@ func handleArtifactVersion(artifactVersion string) string {
}
func getDockerImage(utils protecodeUtils, config *protecodeExecuteScanOptions, cachePath string) (string, string, error) {
m := regexp.MustCompile(`[\\s@:/]`)
m := regexp.MustCompile(`[\s@:/]`)
tarFileName := fmt.Sprintf("%s.tar", m.ReplaceAllString(config.ScanImage, "-"))
tarFilePath, err := filepath.Abs(filepath.Join(cachePath, tarFileName))