From 86c6326994f8795d5a216688cbfd6c599ea563ad Mon Sep 17 00:00:00 2001 From: dailer Date: Thu, 5 Aug 2021 15:46:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20width?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=94=AF=E6=8C=81=20calc?= 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 3aa8a155b..7430f464c 100644 --- a/src/core/2.base.js +++ b/src/core/2.base.js @@ -500,7 +500,7 @@ if (!_global.BI) { if (typeof w === "number") { return w >= 0; } else if (typeof w === "string") { - return /^\d{1,3}(\.\d)?%$/.exec(w) || w == "auto" || /^\d+px$/.exec(w); + return /^\d{1,3}(\.\d)?%$/.test(w) || w == "auto" || /^\d+px$/.test(w) || /^calc/.test(w); } },