mirror of
https://github.com/containers/skopeo.git
synced 2025-10-22 11:44:05 +00:00
Use MatchString instead of Match with a manual conversion
Should not change behavior AFAICT. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
committed by
Valentin Rothberg
parent
16b435257b
commit
c5183d0e34
@@ -364,7 +364,7 @@ func imagesToCopyFromRegistry(registryName string, cfg registrySyncConfig, sourc
|
|||||||
repoLogger.Errorf("Internal error, reference %s does not have a tag, skipping", sReference.DockerReference())
|
repoLogger.Errorf("Internal error, reference %s does not have a tag, skipping", sReference.DockerReference())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if tagReg.Match([]byte(tagged.Tag())) {
|
if tagReg.MatchString(tagged.Tag()) {
|
||||||
sourceReferences = append(sourceReferences, sReference)
|
sourceReferences = append(sourceReferences, sReference)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user