mirror of
https://gitee.com/openharmony/third_party_weex-loader
synced 2024-11-23 07:20:51 +00:00
Signed-off-by: bojiang <jiangbo91@huawei.com> Change-Id: I1d866c2c6427b90a3c66e192518ded161924b6b8
This commit is contained in:
parent
aed118ea6f
commit
d3a7c2482e
10
deps/weex-styler/lib/validator.js
vendored
10
deps/weex-styler/lib/validator.js
vendored
@ -659,8 +659,14 @@ var SHORTHAND_VALIDATOR = function SHORTHAND_VALIDATOR(v, validateFunction, isAr
|
||||
}
|
||||
|
||||
var BORDER_VALIDATOR = function BORDER_VALIDATOR (value, name) {
|
||||
value = (value || '').toString().trim()
|
||||
const values = value.split(/\s+/)
|
||||
value = (value || '').toString().trim();
|
||||
let values = '';
|
||||
const colorAttribute = value.match(/\(.*?\)/g);
|
||||
if (colorAttribute && colorAttribute.length === 1) {
|
||||
values = value.replace(colorAttribute[0], colorAttribute[0].replace(/\s+/g, '')).split(/\s+/);
|
||||
} else {
|
||||
values = value.split(/\s+/);
|
||||
}
|
||||
const res = []
|
||||
let hasError = false
|
||||
const reasons = []
|
||||
|
Loading…
Reference in New Issue
Block a user