Make sure that names with wildcards which are not preceded by dots are also seen as package names and not version constraints
parent
5e75017166
commit
73c109c561
|
@ -51,7 +51,7 @@ class VersionParser extends SemverVersionParser
|
|||
|
||||
for ($i = 0, $count = count($pairs); $i < $count; $i++) {
|
||||
$pair = preg_replace('{^([^=: ]+)[=: ](.*)$}', '$1 $2', trim($pairs[$i]));
|
||||
if (false === strpos($pair, ' ') && isset($pairs[$i + 1]) && false === strpos($pairs[$i + 1], '/') && !PlatformRepository::isPlatformPackage($pairs[$i + 1])) {
|
||||
if (false === strpos($pair, ' ') && isset($pairs[$i + 1]) && false === strpos($pairs[$i + 1], '/') && !preg_match('{(?<!\.)\*}', $pairs[$i + 1]) && !PlatformRepository::isPlatformPackage($pairs[$i + 1])) {
|
||||
$pair .= ' '.$pairs[$i + 1];
|
||||
$i++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue