Don't parse youtube channel/user/etc. links as music videos

master
WolverinDEV 2021-01-08 20:34:54 +01:00
parent 10c3c632f5
commit 89f414e65c
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ function preprocessMessage(message: string, settings: BBCodeRenderOptions) : str
{
const result = raw_url.match(youtubeUrlRegex);
if(!result) break single_url_yt;
if(result[5]?.length < 11) break single_url_yt;
return "[yt]https://www.youtube.com/watch?v=" + result[5] + "[/yt]";
}