소스 검색

Add missing pattern delimiters

Jordi Boggiano 6 년 전
부모
커밋
3ceb70ed19
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Packagist/WebBundle/Service/GitHubUserMigrationWorker.php

+ 1 - 1
src/Packagist/WebBundle/Service/GitHubUserMigrationWorker.php

@@ -139,7 +139,7 @@ class GitHubUserMigrationWorker
             }
 
             if (count($hooks) && !preg_match('{^https://api\.github\.com/repos/'.$repoKey.'/hooks/}', $hooks[0]['url'])) {
-                if (preg_match('https://api\.github\.com/repos/([^/]+/[^/]+)/hooks', $hooks[0]['url'], $match)) {
+                if (preg_match('{https://api\.github\.com/repos/([^/]+/[^/]+)/hooks}', $hooks[0]['url'], $match)) {
                     $package->setRepository('https://github.com/'.$match[1]);
                     $this->doctrine->getManager()->flush($package);
                 }