Skip to content

Commit

Permalink
Fix matching of versions in case there is a mix of versions with pref…
Browse files Browse the repository at this point in the history
…ix and no-prefix
  • Loading branch information
xoofx committed Feb 13, 2024
1 parent 6437a11 commit 038d896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotnet-releaser/DevHosting/GitHubDevHosting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public async Task CreateOrUpdateGist(string gistId, string fileName, string cont
private async Task<List<(RepositoryTag, NuGetVersion)>> GetAllReleaseTagsImpl(string user, string repo, string tagPrefix)
{
var tags = await _client.Repository.GetAllTags(user, repo);
var regex = new Regex(@$"{tagPrefix}(\d+(\.\d+)+.*)");
var regex = new Regex(@$"^{tagPrefix}(\d+(\.\d+)+.*)");
var versions = new List<(RepositoryTag, NuGetVersion)>();
foreach (var tag in tags)
{
Expand Down

0 comments on commit 038d896

Please sign in to comment.