diff --git a/index.js b/index.js index dcd2f7a..ecdc9ca 100644 --- a/index.js +++ b/index.js @@ -151,9 +151,9 @@ const init = async (items = [], options = {}, index = 0) => { `; - } else if (/vkvideo\.ru\/video/.test(item)) { + } else if (/(?:vkvideo\.ru|vk\.com)\/video/.test(item)) { isVideoInGallery.vk = true; - const videoId = /vkvideo.ru\/video(-?\d+)_(\d+)/.exec(item); + const videoId = /(?:vkvideo\.ru|vk\.com)\/video(-?\d+)_(\d+)/.exec(item); if (videoId === null) { return `