فهرست منبع

Group all cygwin versions

Jordi Boggiano 5 سال پیش
والد
کامیت
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);
         }