Skip to content

Commit

Permalink
Merge pull request #3882 from magento-engcom/composer-test-convention…
Browse files Browse the repository at this point in the history
…-update-2.2

[EngCom] Elasticsearch 6 Support
  • Loading branch information
ishakhsuvarov authored Mar 14, 2019
2 parents 30ed829 + a01bd6a commit eef6935
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ private function convertModuleToPackageName($moduleName)
{
list($vendor, $name) = explode('_', $moduleName, 2);
$package = 'module';
foreach (preg_split('/([A-Z][a-z\d]+)/', $name, -1, PREG_SPLIT_DELIM_CAPTURE) as $chunk) {
foreach (preg_split('/([A-Z\d][a-z]*)/', $name, -1, PREG_SPLIT_DELIM_CAPTURE) as $chunk) {
$package .= $chunk ? "-{$chunk}" : '';
}
return strtolower("{$vendor}/{$package}");
Expand Down

0 comments on commit eef6935

Please sign in to comment.