1
0
Fork 0

RC versions don't need a number

pull/9/head
Jordi Boggiano 2011-08-21 13:12:48 +02:00
parent 071fa7a4d7
commit 2b77710515
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ abstract class BasePackage implements PackageInterface
*/
public static function parseVersion($version)
{
if (!preg_match('#^v?(\d+)(\.\d+)?(\.\d+)?-?((?:beta|RC\d+|alpha)\d*)?-?(dev)?$#i', $version, $matches)) {
if (!preg_match('#^v?(\d+)(\.\d+)?(\.\d+)?-?((?:beta|RC|alpha)\d*)?-?(dev)?$#i', $version, $matches)) {
throw new \UnexpectedValueException('Invalid version string '.$version);
}