fix/catalog-image-overlap #44

Merged
mono merged 3 commits from fix/catalog-image-overlap into main 2026-07-03 19:21:41 -05:00
Showing only changes of commit a89af0f0bb - Show all commits

View File

@@ -342,9 +342,10 @@ export default {
// Búsqueda
filteredItems() {
if (!this.searchQuery) return this.items;
const query = this.searchQuery.toLowerCase();
const normalize = (s) => s.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
const query = normalize(this.searchQuery);
return this.items.filter((item) =>
item.name.toLowerCase().includes(query),
normalize(item.name).includes(query),
);
},
// Paginación