From 8916a15bd29d2b8d4314ddfaebaeeca6520d1b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E5=93=A5?= Date: Wed, 9 Nov 2022 01:41:19 +0000 Subject: [PATCH] update deps/weex-styler/lib/validator.js. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卡哥 --- deps/weex-styler/lib/validator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/weex-styler/lib/validator.js b/deps/weex-styler/lib/validator.js index 6f1216e..6185af7 100644 --- a/deps/weex-styler/lib/validator.js +++ b/deps/weex-styler/lib/validator.js @@ -711,10 +711,12 @@ var BORDER_VALIDATOR = function BORDER_VALIDATOR (value, name) { if (values && values.length <= 3) { for (let i = 0; i < values.length; i++) { const item = values[i] - if (rules[i].match(item)) { + for (let i = 0; i < rules.length; i++) { + if (rules[i].match(item)) { rules[i].action(item) break; } + } // style width color pass verification, but did not write in order, such as "1px red solid", should be error let orderIndex = -1 order.forEach((item) => {