Commit 5f5bbf72 by Dirk Benkert

fixed #8

parent 094655d0
......@@ -171,6 +171,15 @@ class FolderForm extends AbstractForm {
\Zend\Validator\NotEmpty::IS_EMPTY => Text::translate('Please provide a name for the folder to create.'),
)),
),
array(
'name' => 'Regex',
'options' => array(
'pattern' => '/^[a-zA-Z0-9-_.]+$/',
'messages' => array(
\Zend\Validator\Regex::NOT_MATCH => Text::translate('A valid name contains of letters, numbers - and _ only.'),
),
),
),
$entityUnique,
),
)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment