widget: better regexp for @{} syntax
This commit is contained in:
parent
e7688eeed9
commit
fa9d7eaab0
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,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, false, this))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue