Replace string.replaceAll due to bad support

This commit is contained in:
Andrew Kingston 2020-09-17 15:46:59 +01:00
parent 9627837e40
commit 659ae0a641
2 changed files with 13 additions and 3 deletions

View File

@ -0,0 +1,12 @@
<script>
export let value
$:
</script>
<div>
</div>
<style>
</style>

View File

@ -26,9 +26,7 @@
} }
$: inputs = enrichInputs(block.inputs) $: inputs = enrichInputs(block.inputs)
$: tagline = block.tagline $: tagline = block.tagline.replace(/{{/g, "<b>{{").replace(/}}/, "}}</b>")
.replaceAll("{{", "<b>{{")
.replaceAll("}}", "}}</b>")
</script> </script>
<div <div