소스 검색

Fix detection of gitlab URLs, fixes #8402, closes #8868

Jordi Boggiano 4 년 전
부모
커밋
4ce492d01d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Composer/Util/Git.php

+ 1 - 1
src/Composer/Util/Git.php

@@ -165,7 +165,7 @@ class Git
                     $errorMsg = $this->process->getErrorOutput();
                 }
             } elseif (
-                preg_match('{^(git)@' . self::getGitLabDomainsRegex($this->config) . ':(.+?)\.git$}i', $url, $match)
+                preg_match('{^(git)@' . self::getGitLabDomainsRegex($this->config) . ':(.+?\.git)$}i', $url, $match)
                 || preg_match('{^(https?)://' . self::getGitLabDomainsRegex($this->config) . '/(.*)}', $url, $match)
             ) {
                 if ($match[1] === 'git') {