summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Controllers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-24 21:29:10 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-24 21:29:10 -0400
commit316242eeb2b6b6e711ab98f64c147a59c1d0aab8 (patch)
tree8266077b34ce63dd09690d97e5e67446f8afc665 /src/SMAPI.Web/Controllers
parent71efadf2322a622bc5a74614b1575d2680a84165 (diff)
downloadSMAPI-316242eeb2b6b6e711ab98f64c147a59c1d0aab8.tar.gz
SMAPI-316242eeb2b6b6e711ab98f64c147a59c1d0aab8.tar.bz2
SMAPI-316242eeb2b6b6e711ab98f64c147a59c1d0aab8.zip
merge ISemanticVersion interfaces into new project (#532)
Diffstat (limited to 'src/SMAPI.Web/Controllers')
-rw-r--r--src/SMAPI.Web/Controllers/IndexController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Controllers/IndexController.cs b/src/SMAPI.Web/Controllers/IndexController.cs
index f4ade7de..09bad112 100644
--- a/src/SMAPI.Web/Controllers/IndexController.cs
+++ b/src/SMAPI.Web/Controllers/IndexController.cs
@@ -130,7 +130,7 @@ namespace StardewModdingAPI.Web.Controllers
Match match = Regex.Match(asset.FileName, @"SMAPI-(?<version>[\d\.]+(?:-.+)?)-installer(?<forDevs>-for-developers)?.zip");
if (!match.Success || !SemanticVersion.TryParse(match.Groups["version"].Value, out ISemanticVersion version))
continue;
- bool isBeta = version.Tag != null;
+ bool isBeta = version.IsPrerelease();
bool isForDevs = match.Groups["forDevs"].Success;
yield return new ReleaseVersion(release, asset, version, isBeta, isForDevs);