diff --git a/src/App.svelte b/src/App.svelte index f4dcaa6..d37e901 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -83,7 +83,10 @@ const matchesSearch = logo.name.toLowerCase().includes(val.toLowerCase()) || (logo.title && logo.title.toLowerCase().includes(val.toLowerCase())) || - (logo.brand && logo.brand.toLowerCase().includes(val.toLowerCase())); + (logo.brand && logo.brand.toLowerCase().includes(val.toLowerCase())) || + (logo.meta && Object.values(logo.meta).some( + v => typeof v === 'string' && v.toLowerCase().includes(val.toLowerCase()) + )); const matchesTags = !selectedTags.length || (logo.tags && @@ -308,8 +311,10 @@ const matchesSearch = logo.name.toLowerCase().includes(searchQuery.toLowerCase()) || (logo.title && logo.title.toLowerCase().includes(searchQuery.toLowerCase())) || - (logo.brand && - logo.brand.toLowerCase().includes(searchQuery.toLowerCase())); + (logo.brand && logo.brand.toLowerCase().includes(searchQuery.toLowerCase())) || + (logo.meta && Object.values(logo.meta).some( + v => typeof v === 'string' && v.toLowerCase().includes(searchQuery.toLowerCase()) + )); const matchesTags = !selectedTags.length || (logo.tags && @@ -667,7 +672,10 @@ const matchesSearch = logo.name.toLowerCase().includes(searchQuery.toLowerCase()) || (logo.title && logo.title.toLowerCase().includes(searchQuery.toLowerCase())) || - (logo.brand && logo.brand.toLowerCase().includes(searchQuery.toLowerCase())); + (logo.brand && logo.brand.toLowerCase().includes(searchQuery.toLowerCase())) || + (logo.meta && Object.values(logo.meta).some( + v => typeof v === 'string' && v.toLowerCase().includes(searchQuery.toLowerCase()) + )); const matchesTags = !selectedTags.length || (logo.tags &&