Skip to content

Commit 76d848d

Browse files
committed
remove enum from section string
1 parent 1167104 commit 76d848d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ui/search.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,10 @@ export function Search() {
242242
<For each={Object.entries(result())}>
243243
{([section, hits]) => (
244244
<section>
245-
<p class="pl-2 pt-2 text-sm text-black/70 dark:text-white/70">
246-
{section}
245+
<p class="pl-2 pt-2 text-sm capitalize text-black/70 dark:text-white/70">
246+
{section
247+
.replace(/^Enum\('(.+)'\)$/, "$1")
248+
.replace(/-/g, " ")}
247249
</p>
248250
<ul role="listbox">
249251
<For each={hits}>

0 commit comments

Comments
 (0)