Skip to content

Commit

Permalink
Use pretty version to avoid 4-digit version strings.
Browse files Browse the repository at this point in the history
- Fixes #5
  • Loading branch information
jhedstrom committed Mar 1, 2018
1 parent fe4b89e commit a62d8e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DrupalInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ protected function findVersion(PackageInterface $package)
return $extra['drupal']['version'];
}

// Default to package version.
return $package->getVersion();
// Default to package pretty version.
// The normal version has 4 digits for some reason.
return $package->getPrettyVersion();
}

/**
Expand Down

0 comments on commit a62d8e6

Please sign in to comment.