From 4943b06146242d7ad96c389e219c06167e1eafa8 Mon Sep 17 00:00:00 2001 From: Amogh M Aradhya Date: Wed, 18 Oct 2023 00:57:49 +0530 Subject: [PATCH] updated regex --- funnel/assets/js/utils/embedvideo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funnel/assets/js/utils/embedvideo.js b/funnel/assets/js/utils/embedvideo.js index 88a65e588..224314517 100644 --- a/funnel/assets/js/utils/embedvideo.js +++ b/funnel/assets/js/utils/embedvideo.js @@ -8,7 +8,7 @@ const Video = { */ getVideoTypeAndId(url) { const regexMatch = url.match( - /(http:|https:|)\/\/(player.|www.)?(?y2u\.be|vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|live\/|watch\?v=|v\/)?(?[A-Za-z0-9._%-]*)(&\S+)?(\?h=(?[^&]+))?/ + /(http:|https:|)\/\/(player.|www.)?(?y2u\.be|vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|live\/|watch\?v=|v\/)?(?[A-Za-z0-9._%-]*)(&\S+)?((\?h=)(?[^&]+))?/ ); let type = ''; if (regexMatch && regexMatch.length > 5) {