Skip to content

Commit ae46ab9

Browse files
Issue #41: Download semantic versioning filename first.
1 parent 24da182 commit ae46ab9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Handler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ protected function extractPackageVersion($package_name, $package_pretty_version)
328328
// Special case for Drupal core.
329329
if (in_array($package_name, ['drupal/core', 'drupal/drupal'])) {
330330
return [
331-
'drupal_format' => $package_pretty_version,
332331
'semver_format' => $package_pretty_version,
332+
'drupal_format' => $package_pretty_version,
333333
];
334334
}
335335
else {
@@ -339,8 +339,8 @@ protected function extractPackageVersion($package_name, $package_pretty_version)
339339
$version_status = isset($parsed_version[4]) ? $parsed_version[4] : '';
340340

341341
return [
342-
'drupal_format' => $major_version . '.' . $minor_version . $version_status,
343342
'semver_format' => $package_pretty_version,
343+
'drupal_format' => $major_version . '.' . $minor_version . $version_status,
344344
];
345345
}
346346
}

0 commit comments

Comments
 (0)