correctly identify AArch as ARM
authorAJ ONeal <aj@therootcompany.com>
Sat, 4 Jul 2020 23:38:02 +0000 (23:38 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sat, 4 Jul 2020 23:38:02 +0000 (23:38 +0000)
_webi/normalize.js

index 4d04d264c512607614592480e85021265a1e702d..5f05c39ae0cd807d1b71702ec7705883781095c0 100644 (file)
@@ -39,14 +39,14 @@ var arches = [
 ];
 var archMap = {
   //amd64: /(amd.?64|x64|[_\-]64)/i,
-  amd64: /(\b|_|amd|(dar)?win(dows)?|mac(os)?|linux|osx|arch|x)64(\b|_)/i,
+  amd64: /(\b|_|amd|(dar)?win(dows)?|mac(os)?|linux|osx|x)64(\b|_)/i,
   //x86: /(86)(\b|_)/i,
-  x86: /(\b|_|amd|(dar)?win(dows)?|mac(os)?|linux|osx|arch|x)(86|32)(\b|_)/i,
+  x86: /(\b|_|amd|(dar)?win(dows)?|mac(os)?|linux|osx|x)(86|32)(\b|_)/i,
   ppc64le: /(\b|_)(ppc64le)/i,
   ppc64: /(\b|_)(ppc64)(\b|_)/i,
-  arm64: /(\b|_)(arm64|arm)/i,
+  arm64: /(\b|_)((aarch|arm)64)|arm)/i,
   armv7l: /(\b|_)(armv?7l)/i,
-  armv6l: /(\b|_)(armv?6l)/i,
+  armv6l: /(\b|_)(aarch32|armv?6l)/i,
   s390x: /(\b|_)(s390x)/i
 };
 arches.forEach(function (name) {