Skip to content

Commit 038d896

Browse files
committed
Fix matching of versions in case there is a mix of versions with prefix and no-prefix
1 parent 6437a11 commit 038d896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotnet-releaser/DevHosting/GitHubDevHosting.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public async Task CreateOrUpdateGist(string gistId, string fileName, string cont
177177
private async Task<List<(RepositoryTag, NuGetVersion)>> GetAllReleaseTagsImpl(string user, string repo, string tagPrefix)
178178
{
179179
var tags = await _client.Repository.GetAllTags(user, repo);
180-
var regex = new Regex(@$"{tagPrefix}(\d+(\.\d+)+.*)");
180+
var regex = new Regex(@$"^{tagPrefix}(\d+(\.\d+)+.*)");
181181
var versions = new List<(RepositoryTag, NuGetVersion)>();
182182
foreach (var tag in tags)
183183
{

0 commit comments

Comments
 (0)