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

Commit

Permalink
Version detection in release entry file name should be a little bit m…
Browse files Browse the repository at this point in the history
…ore strict
  • Loading branch information
caesay committed Jan 10, 2022
1 parent 689b7ec commit 8b68a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Squirrel/ReleaseEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ internal static ReleasePackage GetPreviousRelease(IEnumerable<ReleaseEntry> rele
}

static readonly Regex _suffixRegex = new Regex(@"(-full|-delta)?\.nupkg$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
static readonly Regex _versionStartRegex = new Regex(@"(^|[^\d])(0|[1-9]\d*)\.(0|[1-9]\d*)($|[^\d])", RegexOptions.Compiled);
static readonly Regex _versionStartRegex = new Regex(@"[\.-](0|[1-9]\d*)\.(0|[1-9]\d*)($|[^\d])", RegexOptions.Compiled);

/// <summary>
/// Takes a filename such as 'My-Cool3-App-1.0.1-build.23-full.nupkg' and separates it into
Expand Down

0 comments on commit 8b68a7b

Please sign in to comment.