Add support for ~/+ in addition to - as separator between PHP version and build details, fixes #1322

main
Jordi Boggiano 12 years ago
parent de3188ca7d
commit 172414a1f0

@ -30,7 +30,7 @@ class PlatformRepository extends ArrayRepository
$prettyVersion = PHP_VERSION;
$version = $versionParser->normalize($prettyVersion);
} catch (\UnexpectedValueException $e) {
$prettyVersion = preg_replace('#^(.+?)(-.+)?$#', '$1', PHP_VERSION);
$prettyVersion = preg_replace('#^([^~+-]+).*$#', '$1', PHP_VERSION);
$version = $versionParser->normalize($prettyVersion);
}

Loading…
Cancel
Save