Browse Source

Fix regexes

Jordi Boggiano 5 years ago
parent
commit
84ef9a3d94
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Packagist/WebBundle/Service/UpdaterWorker.php

+ 2 - 2
src/Packagist/WebBundle/Service/UpdaterWorker.php

@@ -199,8 +199,8 @@ class UpdaterWorker
                 // random git clone failures
                 $found404 = true;
             } elseif ($e instanceof \RuntimeException && (
-                preg_match('{fatal: could not read Username for  \'[^\']+\': No such device or address\n}i', $e->getMessage())
-                || preg_match('{fatal: unable to access  \'[^\']+\': Could not resolve host: }i', $e->getMessage())
+                preg_match('{fatal: could not read Username for \'[^\']+\': No such device or address\n}i', $e->getMessage())
+                || preg_match('{fatal: unable to access \'[^\']+\': Could not resolve host: }i', $e->getMessage())
                 || preg_match('{Can\'t connect to host \'[^\']+\': Connection timed out}i', $e->getMessage())
             )) {
                 // unreachable host, skip for a week as this may be a temporary failure