diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-16 18:29:52 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-16 18:29:52 -0400 |
commit | 7dec51923418b269e111a266edb319ff3b0cb118 (patch) | |
tree | 4bce2c8927b8292be7f403802cd0ed0dffc59f60 /src/SMAPI.Toolkit/Framework/Clients | |
parent | 20224d293d03d34860505980cabdb4bc5cf13319 (diff) | |
download | SMAPI-7dec51923418b269e111a266edb319ff3b0cb118.tar.gz SMAPI-7dec51923418b269e111a266edb319ff3b0cb118.tar.bz2 SMAPI-7dec51923418b269e111a266edb319ff3b0cb118.zip |
fix broken unit tests
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/Clients')
-rw-r--r-- | src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs | 7 |
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 |