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

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