[autocomplete] Search filter fix

This commit is contained in:
Matej Glasnák committed 2023-06-12 12:08:22 +02:00
1 parent 994356628d
commit 9b0c417bc0
1 file changed
+1 -1
@@ -11,7 +11,7 @@ export default {
const cleanedInput = normalizedInput.replace(pattern, ''); const cleanedInput = normalizedInput.replace(pattern, '');
// Check if the cleaned item starts with the cleaned input // Check if the cleaned item starts with the cleaned input
return cleanedItem.toLowerCase().startsWith(cleanedInput.toLowerCase()); return cleanedItem.toLowerCase().includes(cleanedInput.toLowerCase());
} }
} }
} }