stash
This commit is contained in:
parent
fed0fb2acf
commit
97fd7da33f
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ export default {
|
|||
methods: {
|
||||
...mapActions(['fetchMessageTemplates', 'fetchMessageTemplateVariables']),
|
||||
formatText(value) {
|
||||
return value.replace(/{{(.*?)}}/g, (match, key) => {
|
||||
return value.replace(/{{(.+?)}}/g, (match, key) => {
|
||||
return `<span class="text-primary">{{ ${key} }}</span>`;
|
||||
}).replace(/\n/g, '<br>').replace(/\t/g, ' ');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue