File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/ImportExport/Model/Import Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ public function validateData()
803803 if (!$ this ->isAttributeParticular ($ columnName )) {
804804 if (trim ($ columnName ) == '' ) {
805805 $ emptyHeaderColumns [] = $ columnNumber ;
806- } elseif (!preg_match ('/^[a-z][a-z0-9_ ]*$/ ' , $ columnName )) {
806+ } elseif (!preg_match ('/^[a-z][\w ]*$/u ' , $ columnName )) {
807807 $ invalidColumns [] = $ columnName ;
808808 } elseif ($ this ->needColumnCheck && !in_array ($ columnName , $ this ->getValidColumnNames ())) {
809809 $ invalidAttributes [] = $ columnName ;
Original file line number Diff line number Diff line change @@ -769,7 +769,7 @@ public function validateData()
769769 if (!$ this ->isAttributeParticular ($ columnName )) {
770770 if (trim ($ columnName ) == '' ) {
771771 $ emptyHeaderColumns [] = $ columnNumber ;
772- } elseif (!preg_match ('/^[a-z][a-z0-9_ ]*$/ ' , $ columnName )) {
772+ } elseif (!preg_match ('/^[a-z][\w ]*$/u ' , $ columnName )) {
773773 $ invalidColumns [] = $ columnName ;
774774 } elseif ($ this ->needColumnCheck && !in_array ($ columnName , $ this ->getValidColumnNames ())) {
775775 $ invalidAttributes [] = $ columnName ;
You can’t perform that action at this time.
0 commit comments