HFP-580 Handle language files with hyphens

JI-92-path-fix
Timothy Lim 2017-01-26 15:31:51 +01:00
parent e02df35bb1
commit 5dc9e3ddd1
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}$/',