parserlib: check if prop with vars inside is known

This commit is contained in:
tophf 2021-08-20 13:03:23 +03:00
parent 8e36e0277f
commit 95205c70e5

View File

@ -2408,9 +2408,6 @@ self.parserlib = (() => {
}
return;
}
if (hasVarParts(value)) {
return;
}
const prop = lower(name);
let known = validationCache.get(prop);
if (known && known.has(value.text)) {
@ -2423,6 +2420,9 @@ self.parserlib = (() => {
if (!spec) {
throw new ValidationError(`Unknown property '${name}'.`, value);
}
if (hasVarParts(value)) {
return;
}
// Property-specific validation.
const expr = new PropertyValueIterator(value);
const m = Matcher.parse(spec);