This commit is contained in:
Timothy J. Baek
2024-10-19 16:18:14 -07:00
parent 73b33c3781
commit 953a8285f7
4 changed files with 42 additions and 21 deletions

View File

@@ -25,7 +25,7 @@
};
let command = '';
$: command = prompt.split(' ')?.at(-1) ?? '';
$: command = prompt?.split('\n').pop()?.split(' ')?.pop() ?? '';
</script>
{#if ['/', '#', '@'].includes(command?.charAt(0)) || '\\#' === command.slice(0, 2)}