Update Prompts.svelte

This commit is contained in:
Classic298
2025-05-23 08:33:21 +02:00
committed by GitHub
parent 524d6bc0c0
commit f4cae6fb49

View File

@@ -23,7 +23,7 @@
let filteredPrompts = []; let filteredPrompts = [];
$: { $: {
if (command && command.length > 1) { if (command && command.length > 0) {
const commandName = command.substring(1).toLowerCase(); const commandName = command.substring(1).toLowerCase();
const cleanedCommandName = commandName.replace(/<\/?p>/gi, '').trim(); const cleanedCommandName = commandName.replace(/<\/?p>/gi, '').trim();