"src/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "bf1c79a6ad9a89e6c122f4d374c3593be7b09ee8"
Commit bcd5853c authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

enhancement: youtu.be url support

parent 58cfa5b9
...@@ -143,7 +143,11 @@ ...@@ -143,7 +143,11 @@
</button> </button>
{/each} {/each}
{#if prompt.split(' ')?.at(0)?.substring(1).startsWith('https://www.youtube.com')} {#if prompt
.split(' ')
.some((s) => s.substring(1).startsWith('https://www.youtube.com') || s
.substring(1)
.startsWith('https://youtu.be'))}
<button <button
class="px-3 py-1.5 rounded-xl w-full text-left bg-gray-100 selected-command-option-button" class="px-3 py-1.5 rounded-xl w-full text-left bg-gray-100 selected-command-option-button"
type="button" type="button"
......
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