From 7615d97c98499863fc9adbe9aca7ad03eb50ff9a Mon Sep 17 00:00:00 2001 From: liuhengjun Date: Fri, 15 Oct 2021 12:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E5=85=81=E8=AE=B8=E5=A4=A7=E4=BA=8E=E7=AD=89=E4=BA=8E?= =?UTF-8?q?10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/manifest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/manifest.ts b/src/utils/manifest.ts index a7cf96c..e75efcc 100644 --- a/src/utils/manifest.ts +++ b/src/utils/manifest.ts @@ -37,7 +37,7 @@ export const CSPKeyMap = { export const validateVersion = (version: string) => { // 测试是否属于 X.Y.Z.a // https://regex101.com/r/xijWEc/3 - const regex = /^\d(\.\d){0,3}$/; + const regex = /^\d+(\.\d+){0,3}$/; // 说明不是正常的版本号 if (!regex.exec(version)) {