HFP-580 Update regex

JI-92-path-fix
Timothy Lim 2017-01-30 14:49:09 +01:00
parent ef4165a11d
commit 3b9dd95683
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-zA-Z]{1,10}$/',
'preloadedDependencies' => array(
'machineName' => '/^[\w0-9\-\.]{1,255}$/i',
'majorVersion' => '/^[0-9]{1,5}$/',