Elwig: Use StringSplitOptions.RemoveEmptyEntries
Test / Run tests (push) Successful in 2m11s

This commit is contained in:
lorenz.stechauner committed 2026-11-25 14:26:31 +01:00
1 parent 4bb13dbb06
commit bc419ce57a
6 files changed
+11 -7

No files matched your search

@@ -11,7 +11,7 @@ namespace Elwig.ViewModels {
[ObservableProperty]
public partial string? SearchQuery { get; set; } = "";
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ').ToList().FindAll(e => e.Length > 0) ?? []];
public List<string> TextFilter => [.. SearchQuery?.ToLower().Split(' ', StringSplitOptions.RemoveEmptyEntries) ?? []];
[ObservableProperty]
public partial bool FilterOnlyUpcoming { get; set; }