feat: allow partial match of tags in the installer (#1167)

This commit is contained in:
Aireil 2023-04-05 08:04:22 +02:00 committed by GitHub
parent 2e33f53a07
commit 48bc151cdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2730,7 +2730,7 @@ internal class PluginInstallerWindow : Window, IDisposable
manifest.InternalName.ToLowerInvariant().Contains(searchString) ||
(!manifest.Author.IsNullOrEmpty() && manifest.Author.Equals(this.searchText, StringComparison.InvariantCultureIgnoreCase)) ||
(!manifest.Punchline.IsNullOrEmpty() && manifest.Punchline.ToLowerInvariant().Contains(searchString)) ||
(manifest.Tags != null && manifest.Tags.Contains(searchString, StringComparer.InvariantCultureIgnoreCase)));
(manifest.Tags != null && manifest.Tags.Any(tag => tag.ToLowerInvariant().Contains(searchString))));
}
private (bool IsInstalled, LocalPlugin Plugin) IsManifestInstalled(PluginManifest? manifest)