Merge branch 'master' of github.com:h5p/h5p-php-library

JI-92-path-fix
Frode Petterson 2017-01-26 15:35:53 +01:00
commit 9abe7ef321
1 changed files with 1 additions and 1 deletions

View File

@ -580,7 +580,7 @@ class H5PValidator {
// Schemas used to validate the h5p files
private $h5pRequired = array(
'title' => '/^.{1,255}$/',
'language' => '/^[a-z]{1,5}$/',
'language' => '/^[/-,a-z]{1,5}$/',
'preloadedDependencies' => array(
'machineName' => '/^[\w0-9\-\.]{1,255}$/i',
'majorVersion' => '/^[0-9]{1,5}$/',