From 8129886905890be85b009d499451854653f9ebf8 Mon Sep 17 00:00:00 2001 From: eduard13 Date: Thu, 7 Feb 2019 17:48:05 +0200 Subject: [PATCH] Fixing the Regex expr --- .../Catalog/Controller/Adminhtml/Product/Attribute/Save.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php b/app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php index cdf0397674e30..3fb93911b85d7 100644 --- a/app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php +++ b/app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php @@ -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(