diff options
author | Peter Saxton <peterhsaxton@gmail.com> | 2024-06-05 09:23:37 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-06-05 10:08:12 +0100 |
commit | dd77aae17a56d7c47d2df2301ab6266e614960e9 (patch) | |
tree | cc87f1a40d3b745a7ce8b0bf634cfb1379e0ff71 | |
parent | 1107ff60270daa06d17cd3809c0a5268d870f806 (diff) | |
download | tour-dd77aae17a56d7c47d2df2301ab6266e614960e9.tar.gz tour-dd77aae17a56d7c47d2df2301ab6266e614960e9.zip |
handle js interpolation
-rw-r--r-- | src/tour.gleam | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tour.gleam b/src/tour.gleam index 859075b..a32f654 100644 --- a/src/tour.gleam +++ b/src/tour.gleam @@ -479,6 +479,7 @@ fn generate_stdlib_bundle(modules: List(String)) -> snag.Result(Nil) { code |> string.replace("\\", "\\\\") |> string.replace("`", "\\`") + |> string.replace("$", "\\$") |> string.split("\n") |> list.filter(fn(line) { !string.starts_with(string.trim(line), "//") }) |> list.filter(fn(line) { |