This commit is contained in:
Timothy Jaeryang Baek
2025-04-11 15:27:25 -07:00
parent c846a550fa
commit c5636ff68c
5 changed files with 49 additions and 13 deletions

View File

@@ -154,6 +154,14 @@
keys: ['name', 'description']
});
});
const decodeString = (str: string) => {
try {
return decodeURIComponent(str);
} catch (e) {
return str;
}
};
</script>
{#if filteredItems.length > 0 || prompt.split(' ')?.at(0)?.substring(1).startsWith('http')}
@@ -210,7 +218,7 @@
{/if}
<div class="line-clamp-1">
{decodeURIComponent(item?.name)}
{decodeString(item?.name)}
</div>
</div>