formula: better regexp (no need to escape object closing brackets)
This commit is contained in:
parent
3907721052
commit
ab0fdb85d9
3 changed files with 4 additions and 3 deletions
|
|
@ -456,9 +456,10 @@ class Widget extends EventEmitter {
|
|||
})
|
||||
|
||||
try {
|
||||
propValue = propValue.replace(/#\{(?:[^}\\]|\\.)+\}/g, (m)=>{
|
||||
propValue = propValue.replace(/#\{(?:[^{}]|\{[^{}]*\})*\}/g, (m)=>{
|
||||
// one bracket nesting allowed, if we need two: #\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}
|
||||
|
||||
// unescape brackets
|
||||
// unescape brackets (not needed anymore, just here for backward compatibility)
|
||||
m = m.replace(/\\(\{|\})/g, '$1')
|
||||
|
||||
// espace multiline strings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue