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:
Miloslav Trmač 2020-05-22 03:26:18 +02:00 committed by Valentin Rothberg
parent 16b435257b
commit c5183d0e34

View File

@ -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())
continue
}
if tagReg.Match([]byte(tagged.Tag())) {
if tagReg.MatchString(tagged.Tag()) {
sourceReferences = append(sourceReferences, sReference)
}
}