File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Store/Model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -463,10 +463,10 @@ protected function _getValidationRulesBeforeSave()
463
463
$ storeLabelRule ->setMessage (__ ('Name is required ' ), \Zend_Validate_NotEmpty::IS_EMPTY );
464
464
$ validator ->addRule ($ storeLabelRule , 'name ' );
465
465
466
- $ storeCodeRule = new \Zend_Validate_Regex ('/^[a-zA-Z ]+[a-z0-9_]*$/ ' );
466
+ $ storeCodeRule = new \Zend_Validate_Regex ('/^[a-z ]+[a-z0-9_]*$/i ' );
467
467
$ storeCodeRule ->setMessage (
468
468
__ (
469
- 'The store code may contain only letters (a-zA-Z ), numbers (0-9) or underscore (_), '
469
+ 'The store code may contain only letters (a-z ), numbers (0-9) or underscore (_), '
470
470
. ' and the first character must be a letter. '
471
471
),
472
472
\Zend_Validate_Regex::NOT_MATCH
You can’t perform that action at this time.
0 commit comments