Преглед изворни кода

Fix update of description for packages that only have numeric branches

Jordi Boggiano пре 7 година
родитељ
комит
105e7a4e6e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Packagist/WebBundle/Package/Updater.php

+ 1 - 1
src/Packagist/WebBundle/Package/Updater.php

@@ -286,7 +286,7 @@ class Updater
         $version->setDescription($descr);
 
         // update the package description only for the default branch
-        if ($rootIdentifier === null || preg_replace('{dev-|-dev}', '', $version->getVersion()) === $rootIdentifier) {
+        if ($rootIdentifier === null || preg_replace('{dev-|(\.x)?-dev}', '', $version->getVersion()) === $rootIdentifier) {
             $package->setDescription($descr);
         }