summaryrefslogtreecommitdiff
path: root/src/SMAPI.Common
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-01-24 11:44:28 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-01-24 11:44:28 -0500
commit0da5dab8932c53ba39f2290268294e9a72b9c5bb (patch)
tree9302a2a53a68202ac97e86662394a509df499541 /src/SMAPI.Common
parent15d4b6310e3dd15c62f3faedbf1290b2db26fb59 (diff)
parent5c96a10da5801049ee17ffa185dbf19e6d8a2306 (diff)
downloadSMAPI-0da5dab8932c53ba39f2290268294e9a72b9c5bb.tar.gz
SMAPI-0da5dab8932c53ba39f2290268294e9a72b9c5bb.tar.bz2
SMAPI-0da5dab8932c53ba39f2290268294e9a72b9c5bb.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI.Common')
-rw-r--r--src/SMAPI.Common/SemanticVersionImpl.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/SMAPI.Common/SemanticVersionImpl.cs b/src/SMAPI.Common/SemanticVersionImpl.cs
index 53cf5a21..1c713b47 100644
--- a/src/SMAPI.Common/SemanticVersionImpl.cs
+++ b/src/SMAPI.Common/SemanticVersionImpl.cs
@@ -190,9 +190,7 @@ namespace StardewModdingAPI.Common
private string GetNormalisedTag(string tag)
{
tag = tag?.Trim();
- if (string.IsNullOrWhiteSpace(tag) || tag == "0") // '0' from incorrect examples in old SMAPI documentation
- return null;
- return tag;
+ return !string.IsNullOrWhiteSpace(tag) ? tag : null;
}
}
}