Commit 4f2924c3 authored by Manuel Tancoigne's avatar Manuel Tancoigne

Improve renderer view

parent ceed1574
......@@ -13,7 +13,7 @@
</i-alert>
</section>
<i-form size="sm">
<section>
<section v-if="variables.length > 0">
<h2 class="h3 _margin-y-0">
{{ $t('renderer.variables') }}
</h2>
......@@ -22,7 +22,7 @@
v-model="variable.content"
:variable="variable" />
</section>
<section>
<section v-if="blocks.length > 0">
<h2 class="h3 _margin-y-0">
{{ $t('renderer.sections') }}
</h2>
......@@ -266,7 +266,7 @@ export default {
},
extractVariables (source) {
const varRegexpStart = '([^[])\\[(?:(STRING|TEXT|NUMBER) )?'
const varRegexpEnd = ' ?(.*)\\]([^\\]])'
const varRegexpEnd = ' ?(.*?)\\]([^\\]])'
const varRegexp = new RegExp(`${varRegexpStart}([A-Z_]+)${varRegexpEnd}`)
let matches
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment