update deps/weex-styler/lib/validator.js.

Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
卡哥 2022-11-09 01:41:19 +00:00 committed by Gitee
parent 6a3353502b
commit 8916a15bd2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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) => {