summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Framework/Clients/Wiki
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-16 18:29:52 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-16 18:29:52 -0400
commit7dec51923418b269e111a266edb319ff3b0cb118 (patch)
tree4bce2c8927b8292be7f403802cd0ed0dffc59f60 /src/SMAPI.Toolkit/Framework/Clients/Wiki
parent20224d293d03d34860505980cabdb4bc5cf13319 (diff)
downloadSMAPI-7dec51923418b269e111a266edb319ff3b0cb118.tar.gz
SMAPI-7dec51923418b269e111a266edb319ff3b0cb118.tar.bz2
SMAPI-7dec51923418b269e111a266edb319ff3b0cb118.zip
fix broken unit tests
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/Clients/Wiki')
-rw-r--r--src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs b/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs
index 8646f1cc..a2497dea 100644
--- a/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs
+++ b/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs
@@ -55,7 +55,12 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
{
// get list
List<string> values = !string.IsNullOrWhiteSpace(rawField)
- ? new List<string>(rawField.Split(','))
+ ? new List<string>(
+ from field in rawField.Split(',')
+ let value = field.Trim()
+ where value.Length > 0
+ select value
+ )
: new List<string>();
// apply changes