aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/updates/+page.svelte9
1 files changed, 6 insertions, 3 deletions
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)/, '<i>$1</i> $2');
+ // const italicTitle = (title: string) =>
+ // title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '<i>$1</i> $2');
+
+ const chapterTitle = (title: string) => title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '$2');
</script>
<div id="list-container">
@@ -69,8 +71,9 @@
reformatChapter(item.title)
)}&sort=SEARCH_MATCH`}
>
- {@html italicTitle(reformatChapter(item.title))}
+ <i>{@html clipTitle(reformatChapter(item.title))}</i>
</a>
+ {@html chapterTitle(reformatChapter(item.title))}
{/if}
</li>
{/each}