nested props: fix regexp for when the nested call is not at the end
This commit is contained in:
parent
492af30e70
commit
402ee3291e
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue