From ae46ab96d4586f0bf164eac2f17fa0e62837621f Mon Sep 17 00:00:00 2001 From: Florent Torregrosa Date: Sat, 21 Sep 2024 18:18:11 +0200 Subject: [PATCH] Issue #41: Download semantic versioning filename first. --- src/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Handler.php b/src/Handler.php index a79a3db..b0b1fb1 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -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 { @@ -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, ]; } }