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 @@ -831,7 +831,7 @@ public function validateData()
831831 if (!$ this ->isAttributeParticular ($ columnName )) {
832832 if (trim ($ columnName ) == '' ) {
833833 $ emptyHeaderColumns [] = $ columnNumber ;
834- } elseif (!preg_match ('/^[a-z][a-z0-9_ ]*$/ ' , $ columnName )) {
834+ } elseif (!preg_match ('/^[a-z][\w ]*$/u ' , $ columnName )) {
835835 $ invalidColumns [] = $ columnName ;
836836 } elseif ($ this ->needColumnCheck && !in_array ($ columnName , $ this ->getValidColumnNames ())) {
837837 $ invalidAttributes [] = $ columnName ;
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 ;
You can’t perform that action at this time.
0 commit comments