mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Update PromptCommands.svelte
feat: case-insensitive prompt search
This commit is contained in:
parent
9e4dd4b86f
commit
01ad197973
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue