mirror of
https://github.com/containers/skopeo.git
synced 2025-09-20 17:38:25 +00:00
@@ -381,7 +381,7 @@ quay.io:
|
|||||||
// get the number of tags
|
// get the number of tags
|
||||||
re := regexp.MustCompile(`^ +- +[^:/ ]+`)
|
re := regexp.MustCompile(`^ +- +[^:/ ]+`)
|
||||||
var nTags int
|
var nTags int
|
||||||
for _, l := range strings.Split(yamlConfig, "\n") {
|
for l := range strings.SplitSeq(yamlConfig, "\n") {
|
||||||
if re.MatchString(l) {
|
if re.MatchString(l) {
|
||||||
nTags++
|
nTags++
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user