From 01ad197973753e767e20392e48a1100f185a2a89 Mon Sep 17 00:00:00 2001 From: silentoplayz <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:19:52 +0000 Subject: [PATCH] Update PromptCommands.svelte feat: case-insensitive prompt search --- src/lib/components/chat/MessageInput/PromptCommands.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/MessageInput/PromptCommands.svelte b/src/lib/components/chat/MessageInput/PromptCommands.svelte index f15927a5c..a9869fb07 100644 --- a/src/lib/components/chat/MessageInput/PromptCommands.svelte +++ b/src/lib/components/chat/MessageInput/PromptCommands.svelte @@ -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) {