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) {