Use strings.SplitSeq

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2025-02-13 02:13:26 +01:00
parent 24c2a374d6
commit 0114569b17

View File

@@ -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++
} }