From 0c5879b15a5ef26b87913ce571c190fcb2fea8d8 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 16 Dec 2023 01:19:59 -0800 Subject: fix(updates): better display title link --- src/routes/updates/+page.svelte | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/routes') diff --git a/src/routes/updates/+page.svelte b/src/routes/updates/+page.svelte index 97e856de..7b3a0f6c 100644 --- a/src/routes/updates/+page.svelte +++ b/src/routes/updates/+page.svelte @@ -41,8 +41,10 @@ .replace(/\? ~.*$/, '') .trim(); - const italicTitle = (title: string) => - title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '$1 $2'); + // const italicTitle = (title: string) => + // title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '$1 $2'); + + const chapterTitle = (title: string) => title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '$2');
@@ -69,8 +71,9 @@ reformatChapter(item.title) )}&sort=SEARCH_MATCH`} > - {@html italicTitle(reformatChapter(item.title))} + {@html clipTitle(reformatChapter(item.title))} + {@html chapterTitle(reformatChapter(item.title))} {/if} {/each} -- cgit v1.2.3