From fe44a9d05e1927b9e13451c3d8425c5382057247 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 14 Sep 2023 17:22:47 -0700 Subject: fix(updates): non-italic volume --- src/routes/updates/+page.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/routes/updates/+page.svelte b/src/routes/updates/+page.svelte index afe6d56a..26bc1fd0 100644 --- a/src/routes/updates/+page.svelte +++ b/src/routes/updates/+page.svelte @@ -30,13 +30,14 @@ .replace(/v\.(\d+)\s/, 'Vol. $1 ') .replace(/c\.(\d+)/, 'Ch. $1'); - const clipTitle = (title: string): string => + const clipTitle = (title: string) => title .replace(/(Vol\. \d+ )?Ch\. \d+(-\d+(\.\d+)?)?$/, '') .replace(/\? ~.*$/, '') .trim(); - const italicTitle = (title: string) => title.replace(/^(.*?) Ch\.|\bOneshot\b/, '$1 Ch.'); + const italicTitle = (title: string) => + title.replace(/^(.*?) (Vol\.|Ch\.|\bOneshot\b)/, '$1 $2');
-- cgit v1.2.3