Fix version parsing in launcher

This commit is contained in:
Timothy Baldridge 2020-02-07 23:05:33 -07:00
parent 1346a2f41c
commit 495335899b

View File

@ -56,12 +56,12 @@ namespace Wabbajack.Launcher
var releases = await GetReleases();
_version = releases.OrderByDescending(r =>
{
if (Version.TryParse(r.Tag, out var v))
if (r.Tag.Split(".").Length == 4 && Version.TryParse(r.Tag, out var v))
return v;
return new Version(0, 0, 0, 0);
}).FirstOrDefault();
}
catch (Exception)
catch (Exception ex)
{
FinishAndExit();
}