diff --git a/NaturalSort/NaturalComparer.cs b/NaturalSort/NaturalComparer.cs index caaba5d3..8f4f8101 100644 --- a/NaturalSort/NaturalComparer.cs +++ b/NaturalSort/NaturalComparer.cs @@ -48,13 +48,13 @@ namespace NaturalSort if (!table.TryGetValue(x, out string[]? x1)) { //x1 = Regex.Split(x.Replace(" ", string.Empty), "([0-9]+)"); - x1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)").Where(s => !string.IsNullOrWhiteSpace(s)).ToArray(); + x1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)").Where(s => !string.IsNullOrEmpty(s)).ToArray(); table.Add(x, x1); } if (!table.TryGetValue(y, out string[]? y1)) { //y1 = Regex.Split(y.Replace(" ", string.Empty), "([0-9]+)"); - y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)").Where(s => !string.IsNullOrWhiteSpace(s)).ToArray(); + y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)").Where(s => !string.IsNullOrEmpty(s)).ToArray(); table.Add(y, y1); } diff --git a/NaturalSort/NaturalReversedComparer.cs b/NaturalSort/NaturalReversedComparer.cs index 028e07bb..0ffa8a19 100644 --- a/NaturalSort/NaturalReversedComparer.cs +++ b/NaturalSort/NaturalReversedComparer.cs @@ -48,13 +48,13 @@ namespace NaturalSort if (!table.TryGetValue(x, out string[]? x1)) { //x1 = Regex.Split(x.Replace(" ", string.Empty), "([0-9]+)"); - x1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)").Where(s => !string.IsNullOrWhiteSpace(s)).ToArray(); + x1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)").Where(s => !string.IsNullOrEmpty(s)).ToArray(); table.Add(x, x1); } if (!table.TryGetValue(y, out string[]? y1)) { //y1 = Regex.Split(y.Replace(" ", string.Empty), "([0-9]+)"); - y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)").Where(s => !string.IsNullOrWhiteSpace(s)).ToArray(); + y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)").Where(s => !string.IsNullOrEmpty(s)).ToArray(); table.Add(y, y1); } diff --git a/NaturalSort/NaturalSort.csproj b/NaturalSort/NaturalSort.csproj index 40cefda8..0fdeac31 100644 --- a/NaturalSort/NaturalSort.csproj +++ b/NaturalSort/NaturalSort.csproj @@ -1,10 +1,28 @@  - net6.0;net8.0 - latest - enable - true + + net20;net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0 + win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64 + false + false + latest + enable + true + true + 1.1.2 + + + Matt Nadareski + Copyright (c)2016-2023 motoschifo, Matt Nadareski + https://github.com/SabreTools/ + https://github.com/SabreTools/SabreTools + git + + + + + diff --git a/SabreTools.Core/SabreTools.Core.csproj b/SabreTools.Core/SabreTools.Core.csproj index 6055520c..e1facf79 100644 --- a/SabreTools.Core/SabreTools.Core.csproj +++ b/SabreTools.Core/SabreTools.Core.csproj @@ -24,7 +24,7 @@ - +