Fix comparer tests

This commit is contained in:
Matt Nadareski
2024-10-26 00:26:07 -04:00
parent 333b5be76c
commit 8debf24a44
2 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ namespace SabreTools.Matching.Compare
//y1 = Regex.Split(y.Replace(" ", string.Empty), "([0-9]+)");
#if NET20 || NET35
var nonempty = new List<string>();
y1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)");
y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)");
foreach (var s in y1)
{
if (!string.IsNullOrEmpty(s))
@@ -82,7 +82,7 @@ namespace SabreTools.Matching.Compare
y1 = nonempty.ToArray();
#else
y1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)")
y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)")
.Where(s => !string.IsNullOrEmpty(s))
.ToArray();
#endif

View File

@@ -73,7 +73,7 @@ namespace SabreTools.Matching.Compare
//y1 = Regex.Split(y.Replace(" ", string.Empty), "([0-9]+)");
#if NET20 || NET35
var nonempty = new List<string>();
y1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)");
y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)");
foreach (var s in y1)
{
if (!string.IsNullOrEmpty(s))
@@ -82,7 +82,7 @@ namespace SabreTools.Matching.Compare
y1 = nonempty.ToArray();
#else
y1 = Regex.Split(x.ToLowerInvariant(), "([0-9]+)")
y1 = Regex.Split(y.ToLowerInvariant(), "([0-9]+)")
.Where(s => !string.IsNullOrEmpty(s))
.ToArray();
#endif