From f2c99ea418753d87142a8d7603e1af1a5fd1cbc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sat, 23 Nov 2024 20:29:17 +0100 Subject: [PATCH] Ensure system playlist link text is formatted correctly --- appFn.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/appFn.ts b/appFn.ts index 04d6a7b..c3b3781 100644 --- a/appFn.ts +++ b/appFn.ts @@ -176,7 +176,13 @@ const appFn: ApplicationFunction = (app: Probot, { getRouter }) => { // .concat(authorName as string); // details = playlistMeta.join(' · '); - details = title! + '· ' + description; + details = ( + title + + ' · ' + + description!.replace('Playlist · ', '') + ) + .replace(/\s+/g, ' ') + .trim(); } numProcessedEntries++;