parserlib: check if prop with vars inside is known
This commit is contained in:
		
							parent
							
								
									8e36e0277f
								
							
						
					
					
						commit
						95205c70e5
					
				|  | @ -2408,9 +2408,6 @@ self.parserlib = (() => { | ||||||
|       } |       } | ||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
|     if (hasVarParts(value)) { |  | ||||||
|       return; |  | ||||||
|     } |  | ||||||
|     const prop = lower(name); |     const prop = lower(name); | ||||||
|     let known = validationCache.get(prop); |     let known = validationCache.get(prop); | ||||||
|     if (known && known.has(value.text)) { |     if (known && known.has(value.text)) { | ||||||
|  | @ -2423,6 +2420,9 @@ self.parserlib = (() => { | ||||||
|     if (!spec) { |     if (!spec) { | ||||||
|       throw new ValidationError(`Unknown property '${name}'.`, value); |       throw new ValidationError(`Unknown property '${name}'.`, value); | ||||||
|     } |     } | ||||||
|  |     if (hasVarParts(value)) { | ||||||
|  |       return; | ||||||
|  |     } | ||||||
|     // Property-specific validation.
 |     // Property-specific validation.
 | ||||||
|     const expr = new PropertyValueIterator(value); |     const expr = new PropertyValueIterator(value); | ||||||
|     const m = Matcher.parse(spec); |     const m = Matcher.parse(spec); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user