nested props: fix regexp for when the nested call is not at the end

This commit is contained in:
jean-emmanuel 2018-10-22 00:46:00 +02:00
parent 2a90452834
commit f99278c36a

View file

@ -407,7 +407,7 @@ class Widget extends EventEmitter {
if (typeof propValue == 'string') {
propValue = propValue.replace(/@\{(?:[^{}]|(@\{[^{}]*\}))*\}/g, (m, nested)=>{
propValue = propValue.replace(/@\{(?:[^{}]|[^{]*(@\{[^{}]*\})[^}]*)*\}/g, (m, nested)=>{
if (nested) {
m = m.replace(nested, this.resolveProp(propName, nested, storeLinks ? 'nested' : false, this))