Skip to content

Commit eef6935

Browse files
Merge pull request #3882 from magento-engcom/composer-test-convention-update-2.2
[EngCom] Elasticsearch 6 Support
2 parents 30ed829 + a01bd6a commit eef6935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/static/testsuite/Magento/Test/Integrity/ComposerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ private function convertModuleToPackageName($moduleName)
452452
{
453453
list($vendor, $name) = explode('_', $moduleName, 2);
454454
$package = 'module';
455-
foreach (preg_split('/([A-Z][a-z\d]+)/', $name, -1, PREG_SPLIT_DELIM_CAPTURE) as $chunk) {
455+
foreach (preg_split('/([A-Z\d][a-z]*)/', $name, -1, PREG_SPLIT_DELIM_CAPTURE) as $chunk) {
456456
$package .= $chunk ? "-{$chunk}" : '';
457457
}
458458
return strtolower("{$vendor}/{$package}");

0 commit comments

Comments
 (0)