fix: better sanity checking for bad plugin manifests

This commit is contained in:
goaaats 2021-12-18 12:27:57 +01:00
parent 8e5db448b2
commit 678cd0f130
No known key found for this signature in database
GPG key ID: F18F057873895461
5 changed files with 28 additions and 7 deletions

View file

@ -1889,7 +1889,7 @@ namespace Dalamud.Interface.Internal.Windows
return hasSearchString && !(
manifest.Name.ToLowerInvariant().Contains(searchString) ||
manifest.Author.Equals(this.searchText, StringComparison.InvariantCultureIgnoreCase) ||
(!manifest.Author.IsNullOrEmpty() && manifest.Author.Equals(this.searchText, StringComparison.InvariantCultureIgnoreCase)) ||
(manifest.Tags != null && manifest.Tags.Contains(searchString, StringComparer.InvariantCultureIgnoreCase)));
}