Commit 5005c9a2 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

[TASK] Change how v is removed from tag before writing version data

parent 0b903b1a
Pipeline #10186 passed with stages
in 6 minutes and 13 seconds
......@@ -114,7 +114,7 @@ class PackagistCommand extends Command
foreach ($downloadData['package']['downloads']['versions'] as $version => $downloads) {
// To ensure packagist version with "v" in tag also gets counted e.g. v4.2.3 is 4.2.3 in TER.
$version = preg_replace('#v#', '', $version);
$version = ltrim($version, 'v');
$versionFound = $this->versionRepository->findOneByExtensionAndVersionString($extension, $version);
if (null === $versionFound) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment