Skip to content

Commit

Permalink
Fixing the Regex expr
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Feb 7, 2019
1 parent e028d6f commit 8129886
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function execute()
}

$validatorAttrCode = new \Zend_Validate_Regex(
['pattern' => '/^[a-zA-Z]+[a-zA-Z0-9_]$/u']
['pattern' => '/^[a-zA-Z]+[a-zA-Z0-9_]+$/u']
);
if (!$validatorAttrCode->isValid($attributeCode)) {
$this->messageManager->addErrorMessage(
Expand Down

0 comments on commit 8129886

Please sign in to comment.