HFP-580 Handle language files with hyphens
parent
e02df35bb1
commit
5dc9e3ddd1
|
@ -580,7 +580,7 @@ class H5PValidator {
|
||||||
// Schemas used to validate the h5p files
|
// Schemas used to validate the h5p files
|
||||||
private $h5pRequired = array(
|
private $h5pRequired = array(
|
||||||
'title' => '/^.{1,255}$/',
|
'title' => '/^.{1,255}$/',
|
||||||
'language' => '/^[a-z]{1,5}$/',
|
'language' => '/^[/-,a-z]{1,5}$/',
|
||||||
'preloadedDependencies' => array(
|
'preloadedDependencies' => array(
|
||||||
'machineName' => '/^[\w0-9\-\.]{1,255}$/i',
|
'machineName' => '/^[\w0-9\-\.]{1,255}$/i',
|
||||||
'majorVersion' => '/^[0-9]{1,5}$/',
|
'majorVersion' => '/^[0-9]{1,5}$/',
|
||||||
|
|
Loading…
Reference in New Issue