1
0
Fork 0

Update parse name version parirs name to lower

pull/6912/head
闫兴茂 2017-12-18 14:55:03 +08:00
parent 0a9abeef88
commit 354bd7f7e2
1 changed files with 3 additions and 3 deletions

View File

@ -54,10 +54,10 @@ class VersionParser extends SemverVersionParser
}
if (strpos($pair, ' ')) {
list($name, $version) = explode(" ", $pair, 2);
$result[] = array('name' => $name, 'version' => $version);
list($name, $version) = explode(' ', $pair, 2);
$result[] = array('name' => strtolower($name), 'version' => $version);
} else {
$result[] = array('name' => $pair);
$result[] = array('name' => strtolower($pair));
}
}