소스 검색

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);
         }