Unverified Commit 01ad1979 authored by silentoplayz's avatar silentoplayz Committed by GitHub
Browse files

Update PromptCommands.svelte

feat: case-insensitive prompt search
parent 9e4dd4b8
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
let filteredPromptCommands = []; let filteredPromptCommands = [];
$: filteredPromptCommands = $prompts $: filteredPromptCommands = $prompts
.filter((p) => p.command.includes(prompt)) .filter((p) => p.command.toLowerCase().includes(prompt.toLowerCase()))
.sort((a, b) => a.title.localeCompare(b.title)); .sort((a, b) => a.title.localeCompare(b.title));
$: if (prompt) { $: if (prompt) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment