Поддержка домена vk.com
This commit is contained in:
		
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							@@ -151,9 +151,9 @@ const init = async (items = [], options = {}, index = 0) => {
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            `;
 | 
			
		||||
        } 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 `
 | 
			
		||||
                    <div class="advdominion-lg__item advdominion-lg__item_video swiper-slide">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user