Skip to content

Commit

Permalink
Fix(Group): Fix incorrect HEX color regex validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek authored Mar 27, 2020
1 parent 26639e8 commit 5d3cec8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function createComponentForm()

$form->addText('color')
->setRequired('Prosím zadejte barvu.')
->addRule(Form::PATTERN, 'Barva musi byt zadana v HEX formatu', '^\d{6}$');
->addRule(Form::PATTERN, 'Barva musi byt zadana v HEX formatu', '^[0-9a-f]{3,6}$');

$aclOperationOptions = [];
foreach ($this->aclResourceRepository->getAll() AS $aclResource)
Expand Down

0 comments on commit 5d3cec8

Please sign in to comment.