Browse Source

Fix update of description for packages that only have numeric branches

Jordi Boggiano 7 năm trước cách đây
mục cha
commit
105e7a4e6e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
         }