Skip to content

Commit

Permalink
handle js interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
CrowdHailer authored and lpil committed Jun 5, 2024
1 parent 1107ff6 commit dd77aae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tour.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dd77aae

Please sign in to comment.