From c181c9864d292a95a654d52b801427bba741dd96 Mon Sep 17 00:00:00 2001 From: zsmj Date: Tue, 25 Oct 2022 17:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=20fix:=20=E4=BF=AE=E5=A4=8DBI.isW?= =?UTF-8?q?idthOrHeight?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/2.base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/2.base.js b/src/core/2.base.js index 61d9487cc..d7007de52 100644 --- a/src/core/2.base.js +++ b/src/core/2.base.js @@ -486,7 +486,7 @@ if (typeof w === "number") { return w >= 0; } else if (typeof w === "string") { - return /^\d{1,3}(\.\d)?%$/.test(w) || w === "auto" || /^\d+(\.\d+)px$/.test(w) || /^calc/.test(w); + return /^\d{1,3}(\.\d)?%$/.test(w) || w === "auto" || /^\d+(\.\d+)?px$/.test(w) || /^calc/.test(w); } },