diff --git a/h5p.classes.php b/h5p.classes.php index f4b1a21..b1019d2 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -260,10 +260,10 @@ class H5PValidator { 'type' => '/^(css|js)$/', ), 'preloadedJs' => array( - 'path' => '/^((\\\|\/)?[a-z_\-\s0-9]+)+\.js$/i', + 'path' => '/^((\\\|\/)?[a-z_\-\s0-9\.]+)+\.js$/i', ), 'preloadedCss' => array( - 'path' => '/^((\\\|\/)?[a-z_\-\s0-9]+)+\.css$/i', + 'path' => '/^((\\\|\/)?[a-z_\-\s0-9\.]+)+\.css$/i', ), 'dropLibraryCss' => array( 'machineName' => '/^[\w0-9\-\.]{1,255}$/i',