Correction d'un problème concernant l'affichage des vidéos Youtube

This commit is contained in:
Yohann 2019-12-22 19:10:30 +01:00
parent e399f9ab33
commit 04f7bcfa68
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ function exportProblemsData() {
function displayVideo($link)
{
if (preg_match("#(https?://|)(www\.|)(youtube\.com/watch\?v=|youtu.be/)(.*)#", $link, $matches)) {
if (preg_match("#(https?://|)(www\.|)(youtube\.com/watch\?v=|youtu.be/)([a-zA-Z0-9]*)?.*?#", $link, $matches)) {
$code = $matches[4];
/** @noinspection HtmlDeprecatedAttribute */
/** @noinspection HtmlDeprecatedTag */