Replace string.replaceAll due to bad support

This commit is contained in:
Andrew Kingston 2020-09-17 15:46:59 +01:00
parent 2287675c79
commit 6b11add939
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