private function sanitize(string $version) : string { return preg_replace('/^(\\d+\\.\\d+(?:.\\d+)?).*$/', '$1', $version); }