switch from bat to ps1
[webi-installers/.git] / _webi / ua-detect.js
index fb0a316e9d00ac45e7b2db7f2379870a1f1639c8..27d772a7113a3bfb25a78b8e7fea2c045b3b0868 100644 (file)
@@ -10,7 +10,7 @@ function getOs(ua) {
     return 'android';
   } else if (/iOS|iPhone|Macintosh|Darwin|OS\s*X|macOS|mac/i.test(ua)) {
     return 'macos';
-  } else if (/Microsoft|Windows|win32|win|PowerShell/.test(ua)) {
+  } else if (/^ms$|Microsoft|Windows|win32|win|PowerShell/i.test(ua)) {
     // 'win' must be tested after 'darwin'
     return 'windows';
   } else if (/Linux|curl|wget/i.test(ua)) {