also match 'os-x', 'os_x', and 'os x' as 'macos'
authorAJ ONeal <coolaj86@gmail.com>
Tue, 30 Jun 2020 17:19:28 +0000 (11:19 -0600)
committerAJ ONeal <coolaj86@gmail.com>
Tue, 30 Jun 2020 17:19:55 +0000 (11:19 -0600)
_webi/normalize.js

index 5672bca8a42dda202396e6c642d538e6803e210a..df34ad2cd5aec75d469023ffb6243485be8b5fba 100644 (file)
@@ -2,7 +2,7 @@
 
 // this may need customizations between packages
 var osMap = {
-  macos: /(\b|_)(apple|os\s?x\b|mac|darwin|iPhone|iOS|iPad)/i,
+  macos: /(\b|_)(apple|os(\s_-)?x\b|mac|darwin|iPhone|iOS|iPad)/i,
   linux: /(\b|_)(linux)/i,
   freebsd: /(\b|_)(freebsd)/i,
   windows: /(\b|_)(win|microsoft|msft)/i,