From bcb916a03c4e0cfb2a104c1ad6c57857a647bc4e Mon Sep 17 00:00:00 2001 From: Kotone Fujita^^ <44078938+sanaprix@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:19:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20CPU=20Core=20=E7=9A=84?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=96=B9=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/host.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/host.js b/src/utils/host.js index cfb500b..701d61c 100644 --- a/src/utils/host.js +++ b/src/utils/host.js @@ -35,7 +35,7 @@ export function getCPUInfo(text) { const companyReg = /Intel|AMD|ARM|Qualcomm|Apple|Samsung|IBM|NVIDIA/; // eslint-disable-next-line max-len, vue/max-len const modelReg = /Xeon|Threadripper|Athlon|Pentium|Celeron|Opteron|Phenom|Turion|Sempron|FX|A-Series|R-Series|EPYC|Ryzen/; - const coresReg = /(\d+) (Virtual|Physics) Core/; + const coresReg = /(\d+) (Virtual|Physics|Physical) Core/; const companyMatch = text.match(companyReg); const modelMatch = text.match(modelReg); const coresMatch = text.match(coresReg);