Skip to content

Commit 1def672

Browse files
authored
Fix for missing + sign in preg_replace in _underscore call
1 parent 252ce2a commit 1def672

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/DataObject.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,8 @@ protected function _underscore($name)
454454
$result = strtolower(
455455
trim(
456456
preg_replace(
457-
'/([A-Z]|[0-9])/', "_$1",
457+
'/([A-Z]|[0-9]+)/',
458+
"_$1",
458459
lcfirst(
459460
substr(
460461
$name,

0 commit comments

Comments
 (0)