UI updates

This commit is contained in:
2021-09-12 13:00:07 +02:00
parent 18a7fde982
commit b3a0c2b8ec
12 changed files with 60 additions and 35 deletions
@@ -82,6 +82,8 @@ namespace zero.Core.Extensions
return source;
}
searchTerms = searchTerms.Trim();
string[] searchParts = searchTerms.Split(new[] { " " }, StringSplitOptions.RemoveEmptyEntries).Select(x =>
{
if (suffix != null)
@@ -95,6 +97,11 @@ namespace zero.Core.Extensions
return x;
}).ToArray();
if (searchTerms.StartsWith('"') && searchTerms.EndsWith('"'))
{
searchParts = new[] { searchTerms };
}
return source.Search(fieldSelector, searchParts, @operator: @operator);
}
}