From 2c01fe389d1e534495b246c164838e652abf95a9 Mon Sep 17 00:00:00 2001 From: FullGreaM Date: Sun, 9 Nov 2025 15:33:52 +0300 Subject: [PATCH] fix youtube link regexp --- src/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.js b/src/bot.js index 6587945..8e1c90a 100644 --- a/src/bot.js +++ b/src/bot.js @@ -31,7 +31,7 @@ function removeTemp () { } removeTemp(); -const ytLinkRegexp = /^https:\/\/www\.youtube\.com/m; +const ytLinkRegexp = /^https:\/\/(www\.|m\.|)youtu(be\.com|\.be)/m; async function getFileSize(pathname) { const stream = fs.createReadStream(pathname);