Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Version.php

function Version::parseZoneinfoVersion

1 call to Version::parseZoneinfoVersion()
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 56

Class

Version
@author Lars Strojny <lars@strojny.net>

Namespace

Composer\Platform

Code

public static function parseZoneinfoVersion(string $zoneinfoVersion) : ?string {
    if (!Preg::isMatchStrictGroups('/^(?<year>\\d{4})(?<revision>[a-z]*)$/', $zoneinfoVersion, $matches)) {
        return null;
    }
    return $matches['year'] . '.' . self::convertAlphaVersionToIntVersion($matches['revision']);
}
RSS feed
Powered by Drupal