From fd3be5f91f512ccd623cbd711b5f2bdcc9c756cb Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 13 Sep 2023 14:20:21 -0700 Subject: feat(updates): italic titles --- src/routes/updates/+page.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/routes/updates/+page.svelte b/src/routes/updates/+page.svelte index ead0ce13..2a9333ab 100644 --- a/src/routes/updates/+page.svelte +++ b/src/routes/updates/+page.svelte @@ -35,6 +35,8 @@ .replace(/\? ~.*$/, '') .trim(); } + + const italicTitle = (title: string) => title.replace(/^(.*?) Ch\.|\bOneshot\b/, '$1 Ch.');
@@ -61,7 +63,7 @@ reformat(item.title) )}&sort=SEARCH_MATCH`} > - {reformat(item.title)} + {@html italicTitle(reformat(item.title))} {/if} -- cgit v1.2.3