Skip to content

Commit 79fef23

Browse files
authored
Fix formatting and add comment
1 parent a8ea125 commit 79fef23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/VersionParser.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ public function normalize($version, $fullVersion = null)
108108

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

113114
$version = $match[1];
114115
}

0 commit comments

Comments
 (0)