Update PromptCommands.svelte

feat: case-insensitive prompt search
This commit is contained in:
silentoplayz 2024-06-25 18:19:52 +00:00 committed by GitHub
parent 9e4dd4b86f
commit 01ad197973
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@
let filteredPromptCommands = [];
$: filteredPromptCommands = $prompts
.filter((p) => p.command.includes(prompt))
.filter((p) => p.command.toLowerCase().includes(prompt.toLowerCase()))
.sort((a, b) => a.title.localeCompare(b.title));
$: if (prompt) {