Jordi Boggiano 5 лет назад
Родитель
Сommit
edb80521f2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Packagist/WebBundle/Util/UserAgentParser.php

+ 1 - 1
src/Packagist/WebBundle/Util/UserAgentParser.php

@@ -23,7 +23,7 @@ class UserAgentParser
             }
             $this->composerVersion = preg_replace('{\+[a-f0-9]{40}}', '', $matches['composer']);
             $this->phpVersion = $matches['php'];
-            $this->os = $matches['os'];
+            $this->os = preg_replace('{^cygwin_nt-.*}', 'cygwin', $matches['os']);
             $this->httpVersion = $matches['http'] ?? null;
             $this->ci = (bool) ($matches['ci'] ?? null);
         }