We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2b24aa3 + c6d8b79 commit ddd481fCopy full SHA for ddd481f
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php
@@ -129,7 +129,7 @@ public function execute()
129
$attributeCode = $this->getRequest()->getParam('attribute_code')
130
?: $this->generateCode($this->getRequest()->getParam('frontend_label')[0]);
131
if (strlen($attributeCode) > 0) {
132
- $validatorAttrCode = new \Zend_Validate_Regex(['pattern' => '/^[a-z][a-z_0-9]{0,30}$/']);
+ $validatorAttrCode = new \Zend_Validate_Regex(['pattern' => '/^[a-z\x{600}-\x{6FF}][a-z\x{600}-\x{6FF}_0-9]{0,30}$/u']);
133
if (!$validatorAttrCode->isValid($attributeCode)) {
134
$this->messageManager->addError(
135
__(
0 commit comments