match on 64*bit and 32*bit
authorAJ ONeal <aj@therootcompany.com>
Mon, 6 Jul 2020 15:31:08 +0000 (15:31 +0000)
committerAJ ONeal <aj@therootcompany.com>
Mon, 6 Jul 2020 15:31:08 +0000 (15:31 +0000)
_webi/normalize.js

index 8e157abd0e23d0da9f5524e59f5975229b8a411b..06c1ceec81e5f6043008698722a53cee60e344c0 100644 (file)
@@ -39,9 +39,9 @@ var arches = [
 ];
 var archMap = {
   //amd64: /(amd.?64|x64|[_\-]64)/i,
-  amd64: /(\b|_|amd|(dar)?win(dows)?|mac(os)?|linux|osx|x)64(\b|_)/i,
+  amd64: /(\b|_|amd|(dar)?win(dows)?|mac(os)?|linux|osx|x)64([_\-]?bit)?(\b|_)/i,
   //x86: /(86)(\b|_)/i,
-  x86: /(\b|_|amd|(dar)?win(dows)?|mac(os)?|linux|osx|x)(86|32)(\b|_)/i,
+  x86: /(\b|_|amd|(dar)?win(dows)?|mac(os)?|linux|osx|x)(86|32)([_\-]?bit)(\b|_)/i,
   ppc64le: /(\b|_)(ppc64le)/i,
   ppc64: /(\b|_)(ppc64)(\b|_)/i,
   arm64: /(\b|_)((aarch|arm)64|arm)/i,