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); } },