From ab0023bbfb3372f69ed3aefd39def4a25f20b622 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Wed, 18 Dec 2024 18:11:56 +0100 Subject: [PATCH] HFP-4174 Allow Panopto videos from self-hosted Panopto instances --- scripts/panopto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/panopto.js b/scripts/panopto.js index d4c3b963..baea77c4 100644 --- a/scripts/panopto.js +++ b/scripts/panopto.js @@ -516,7 +516,7 @@ H5P.VideoPanopto = (function ($) { * @returns {String} Panopto video identifier */ var getId = function (url) { - const matches = url.match(/^[^\/]+:\/\/([^\/]*panopto\.[^\/]+)\/Panopto\/.+\?id=(.+)$/); + const matches = url.match(/^[^\/]+:\/\/([^\/]+)\/Panopto\/.+\?id=(.+)$/); if (matches && matches.length === 3) { return [matches[1], matches[2]]; }