diff --git a/CHANGELOG.md b/CHANGELOG.md index 65fbe36f..47025d30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,15 @@ # Changelog +## 0.45.5 + +- bug fixes + - nested `@{}` calls issue ([#516](https://github.com/jean-emmanuel/open-stage-control/issues/516)) + ## 0.45.4 - bug fixes - handle network drops correctly (notify immediately and fix reconnection mechanism) - - formulas breaking the property update mechanism when not resolved + - formulas breaking the property update mechanism when not resolved - modal: title layout issue ## 0.45.3 diff --git a/src/client/app/widgets/common/widget.js b/src/client/app/widgets/common/widget.js index 74b65b9f..b8617c57 100644 --- a/src/client/app/widgets/common/widget.js +++ b/src/client/app/widgets/common/widget.js @@ -429,16 +429,18 @@ class Widget extends EventEmitter { if (typeof propValue == 'string') { - propValue = propValue.replace(/@\{[^{}]*(@\{[^{}]*\})*[^{}]*\}/g, (m, nested)=>{ + propValue = propValue.replace(/@\{[^{}]*((@\{[^{}]*\}|[^{}]*)*)\}/g, (m, nested)=>{ // pretty regexp: // @\{ // [^{}]* - // ( + // (( // @\{ // [^{}]* // \} - // )* - // [^{}]* + // | + // [^{}]* + // )*) + // // \} if (nested) {