diff --git a/CHANGELOG.md b/CHANGELOG.md index 062ac0ae..a8e3b052 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ - bug fixes - launcher: `Ctrl+M` keyboard shortcut not working +- advanced syntaxes + - support `@{}` inside `IMPORT{}` + ## 1.24.0 - bug fixes diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 7aef53fc..c4fb7000 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -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] === '"') ||