function Version::parseLibjpeg
1 call to Version::parseLibjpeg()
- PlatformRepository::initialize in vendor/
composer/ composer/ src/ Composer/ Repository/ PlatformRepository.php - Initializes the packages array. Mostly meant as an extension point.
File
-
vendor/
composer/ composer/ src/ Composer/ Platform/ Version.php, line 47
Class
- Version
- @author Lars Strojny <lars@strojny.net>
Namespace
Composer\PlatformCode
public static function parseLibjpeg(string $libjpegVersion) : ?string {
if (!Preg::isMatchStrictGroups('/^(?<major>\\d+)(?<minor>[a-z]*)$/', $libjpegVersion, $matches)) {
return null;
}
return $matches['major'] . '.' . self::convertAlphaVersionToIntVersion($matches['minor']);
}