Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 26447c9

Browse files
committed
Fix git version parsing
1 parent 13cd75a commit 26447c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.Api/OutputProcessors/VersionOutputProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public override void LineReceived(string line)
1515
return;
1616

1717
var match = GitVersionRegex.Match(line);
18-
if (match.Groups.Count > 0)
18+
if (match.Groups.Count > 1)
1919
{
20-
var version = TheVersion.Parse(match.Groups[0].Value);
20+
var version = TheVersion.Parse(match.Groups[1].Value);
2121
RaiseOnEntry(version);
2222
}
2323
}

0 commit comments

Comments
 (0)