Skip to content

Commit

Permalink
update update
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Aug 31, 2022
1 parent 282d205 commit a487923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OneMore/Commands/Tools/Updater/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public async Task<bool> FetchLatestRelease()
// allow semantic version e.g. "v1.2.3" or suffixed e.g. "v1.2.3-beta"
var plainver = release.tag_name;
var match = Regex.Match(plainver, @"\d+\.\d+[\.\d+]?");
if (match.Success && match.Captures[0].Value.Length > plainver.Length)
if (match.Success && match.Captures[0].Value.Length < plainver.Length)
{
plainver = match.Captures[0].Value;
}
Expand Down

0 comments on commit a487923

Please sign in to comment.