Поддержка домена vk.com

This commit is contained in:
Valentin Silytuin 2025-04-16 00:39:04 +04:00
parent e3882b66f9
commit 8e63417161
1 changed files with 2 additions and 2 deletions

View File

@ -151,9 +151,9 @@ const init = async (items = [], options = {}, index = 0) => {
</div> </div>
</div> </div>
`; `;
} else if (/vkvideo\.ru\/video/.test(item)) { } else if (/(?:vkvideo\.ru|vk\.com)\/video/.test(item)) {
isVideoInGallery.vk = true; 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) { if (videoId === null) {
return ` return `
<div class="advdominion-lg__item advdominion-lg__item_video swiper-slide"> <div class="advdominion-lg__item advdominion-lg__item_video swiper-slide">