From 66318a942955faebf72c260cd8b914905e4b54c1 Mon Sep 17 00:00:00 2001 From: Kotone Fujita^^ <44078938+sanaprix@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=20CPU=20=E6=A0=B8=E5=BF=83=E6=95=B0=E7=9A=84=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=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);