diff --git a/tagger b/tagger index 3353ec7..4277de9 100755 --- a/tagger +++ b/tagger @@ -20,9 +20,7 @@ need_tag = False max_major = 0 for ln in result.stdout.split("\n"): - m = re.match(r"[0-9a-f]+ .*\btag: ([-a-z0-9._]+)", ln) - if m: - tag = m.group(1) + for tag in re.findall(r"\btag: ([-a-z0-9._]+)", ln): if tag.startswith(args.prefix): found_tags.add(tag) try: