From 90f6b9b61791b8103ce8c3b0a5147a21cb4ff298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Fri, 27 Jan 2023 16:15:00 +0100 Subject: [PATCH] Ensure substring following si param gets removed --- bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.ts b/bot.ts index 6be45d8..1380df5 100644 --- a/bot.ts +++ b/bot.ts @@ -141,7 +141,7 @@ export const bot: ApplicationFunction = (app) => { const targetFilename = playlistIdFromPossibleUrl || - filenameWithoutPath.replace(siQueryStart, ''); + filenameWithoutPath.split(siQueryStart)[0]; return `- From ${filenameWithoutPath} to **${targetFilename}**`; })