Skip to content

Commit

Permalink
Fix formatting and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored Jan 13, 2020
1 parent a8ea125 commit 79fef23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/VersionParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public function normalize($version, $fullVersion = null)

// strip off aliasing
if (preg_match('{^([^,\s]++) ++as ++([^,\s]++)$}', $version, $match)) {
$this->normalize( $match[2] );
// verify that the alias is a version without constraint
$this->normalize($match[2]);

$version = $match[1];
}
Expand Down

0 comments on commit 79fef23

Please sign in to comment.