summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-02-24 16:29:50 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-02-24 18:44:24 -0500
commitc7cb7ebb8112f848c3f66f7ae98c9ec0139935aa (patch)
treeab884e32c6f95243705e7137c63ca83a2171f0b4 /src
parentc24946c3993c0680153bbf9e536593cc80fc16f0 (diff)
downloadSMAPI-c7cb7ebb8112f848c3f66f7ae98c9ec0139935aa.tar.gz
SMAPI-c7cb7ebb8112f848c3f66f7ae98c9ec0139935aa.tar.bz2
SMAPI-c7cb7ebb8112f848c3f66f7ae98c9ec0139935aa.zip
fix smapi.io linking to an archived download in rare cases
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Web/Controllers/IndexController.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Controllers/IndexController.cs b/src/SMAPI.Web/Controllers/IndexController.cs
index 7b3b3e80..ea1a52b2 100644
--- a/src/SMAPI.Web/Controllers/IndexController.cs
+++ b/src/SMAPI.Web/Controllers/IndexController.cs
@@ -141,6 +141,9 @@ namespace StardewModdingAPI.Web.Controllers
foreach (GitAsset asset in release.Assets)
{
+ if (asset.FileName.StartsWith("Z_OLD"))
+ continue;
+
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;