HFP-580 Update regex
parent
ef4165a11d
commit
3b9dd95683
|
@ -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-zA-Z]{1,10}$/',
|
||||||
'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