Skip to content

Commit

Permalink
Issue #41: Download semantic versioning filename first.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentTorregrosa committed Sep 21, 2024
1 parent 24da182 commit ae46ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ protected function extractPackageVersion($package_name, $package_pretty_version)
// Special case for Drupal core.
if (in_array($package_name, ['drupal/core', 'drupal/drupal'])) {
return [
'drupal_format' => $package_pretty_version,
'semver_format' => $package_pretty_version,
'drupal_format' => $package_pretty_version,
];
}
else {
Expand All @@ -339,8 +339,8 @@ protected function extractPackageVersion($package_name, $package_pretty_version)
$version_status = isset($parsed_version[4]) ? $parsed_version[4] : '';

return [
'drupal_format' => $major_version . '.' . $minor_version . $version_status,
'semver_format' => $package_pretty_version,
'drupal_format' => $major_version . '.' . $minor_version . $version_status,
];
}
}
Expand Down

0 comments on commit ae46ab9

Please sign in to comment.