prop-inheritance: fix some nested syntax cases (#516)

This commit is contained in:
jean-emmanuel 2019-04-15 13:07:18 +02:00
parent 99e186a144
commit 472fc05dca
2 changed files with 12 additions and 5 deletions

View file

@ -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

View file

@ -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) {