advanced syntaxes: support @{} inside IMPORT{}
This commit is contained in:
parent
968af3994b
commit
22927983b8
2 changed files with 8 additions and 0 deletions
|
|
@ -775,6 +775,11 @@ class Widget extends EventEmitter {
|
|||
})
|
||||
|
||||
propValue = balancedReplace('IMPORT', '{', '}', propValue, (file)=>{
|
||||
|
||||
file = file.replace(/VAR_[0-9]+/g, (m)=>{
|
||||
return typeof variables[m] === 'string' ? variables[m] : JSON.stringify(variables[m])
|
||||
})
|
||||
|
||||
if (
|
||||
// remove quotes
|
||||
(file[0] === '"' && file[file.length - 1] === '"') ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue