From d76fb72f6eabf96fc7bb4ff26e4a4a446318c505 Mon Sep 17 00:00:00 2001 From: Arkadiusz Wieczorek Date: Sun, 17 Jul 2022 18:34:35 +0200 Subject: [PATCH] Fix add one character --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 053f909..31acf2a 100644 --- a/index.ts +++ b/index.ts @@ -48,7 +48,7 @@ app.use(async (ctx) => { item["guid"][0].$.isPermaLink = item["guid"][0].$.isPermalink; delete item["guid"][0].$.isPermalink; item["itunes:subtitle"][0] = - item["itunes:subtitle"][0].split(".")[0] + "."; + item["itunes:subtitle"][0].slice(0, -3) + "…"; item["itunes:summary"][0] = item["itunes:summary"][0].replace( /(<([^>]+)>)/gi, ""