mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-28 00:15:48 +01:00
Ensure substring following si param gets removed
This commit is contained in:
parent
449f718e6f
commit
90f6b9b617
2
bot.ts
2
bot.ts
@ -141,7 +141,7 @@ export const bot: ApplicationFunction = (app) => {
|
|||||||
|
|
||||||
const targetFilename =
|
const targetFilename =
|
||||||
playlistIdFromPossibleUrl ||
|
playlistIdFromPossibleUrl ||
|
||||||
filenameWithoutPath.replace(siQueryStart, '');
|
filenameWithoutPath.split(siQueryStart)[0];
|
||||||
|
|
||||||
return `- From ${filenameWithoutPath} to **${targetFilename}**`;
|
return `- From ${filenameWithoutPath} to **${targetFilename}**`;
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user