HFP-3465 Fix line breaks breaking metadata field validation (#109)
* Fix linebreaks breaking metadata field validation * HFP-3465 Use "single line" flag for regexppull/113/merge
parent
22115c0aea
commit
d3d003e978
|
@ -704,15 +704,15 @@ class H5PValidator {
|
||||||
'source' => '/^(http[s]?:\/\/.+)$/',
|
'source' => '/^(http[s]?:\/\/.+)$/',
|
||||||
'license' => '/^(CC BY|CC BY-SA|CC BY-ND|CC BY-NC|CC BY-NC-SA|CC BY-NC-ND|CC0 1\.0|GNU GPL|PD|ODC PDDL|CC PDM|U|C)$/',
|
'license' => '/^(CC BY|CC BY-SA|CC BY-ND|CC BY-NC|CC BY-NC-SA|CC BY-NC-ND|CC0 1\.0|GNU GPL|PD|ODC PDDL|CC PDM|U|C)$/',
|
||||||
'licenseVersion' => '/^(1\.0|2\.0|2\.5|3\.0|4\.0)$/',
|
'licenseVersion' => '/^(1\.0|2\.0|2\.5|3\.0|4\.0)$/',
|
||||||
'licenseExtras' => '/^.{1,5000}$/',
|
'licenseExtras' => '/^.{1,5000}$/s',
|
||||||
'yearsFrom' => '/^([0-9]{1,4})$/',
|
'yearsFrom' => '/^([0-9]{1,4})$/',
|
||||||
'yearsTo' => '/^([0-9]{1,4})$/',
|
'yearsTo' => '/^([0-9]{1,4})$/',
|
||||||
'changes' => array(
|
'changes' => array(
|
||||||
'date' => '/^[0-9]{2}-[0-9]{2}-[0-9]{2} [0-9]{1,2}:[0-9]{2}:[0-9]{2}$/',
|
'date' => '/^[0-9]{2}-[0-9]{2}-[0-9]{2} [0-9]{1,2}:[0-9]{2}:[0-9]{2}$/',
|
||||||
'author' => '/^.{1,255}$/',
|
'author' => '/^.{1,255}$/',
|
||||||
'log' => '/^.{1,5000}$/'
|
'log' => '/^.{1,5000}$/s'
|
||||||
),
|
),
|
||||||
'authorComments' => '/^.{1,5000}$/',
|
'authorComments' => '/^.{1,5000}$/s',
|
||||||
'w' => '/^[0-9]{1,4}$/',
|
'w' => '/^[0-9]{1,4}$/',
|
||||||
'h' => '/^[0-9]{1,4}$/',
|
'h' => '/^[0-9]{1,4}$/',
|
||||||
// deprecated
|
// deprecated
|
||||||
|
|
Loading…
Reference in New Issue