1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

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)
$: tagline = block.tagline
.replaceAll("{{", "<b>{{")
.replaceAll("}}", "}}</b>")
$: tagline = block.tagline.replace(/{{/g, "<b>{{").replace(/}}/, "}}</b>")
</script>
<div