From 6a3353502ba9d3affd77346d1c90996e308c4f6c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 8 Nov 2022 20:19:17 +0800 Subject: [PATCH 1/2] lizhouze@huawei.com Signed-off-by: unknown --- deps/weex-styler/lib/validator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/weex-styler/lib/validator.js b/deps/weex-styler/lib/validator.js index f4924a2..6f1216e 100644 --- a/deps/weex-styler/lib/validator.js +++ b/deps/weex-styler/lib/validator.js @@ -713,6 +713,7 @@ var BORDER_VALIDATOR = function BORDER_VALIDATOR (value, name) { const item = values[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 -- Gitee 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 2/2] 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) => { -- Gitee