mdgriffith / elm-codegen

https://package.elm-lang.org/packages/mdgriffith/elm-codegen/latest/
BSD 3-Clause "New" or "Revised" License
138 stars 16 forks source link

Elm.string does not escape characters #56

Closed Orasund closed 2 years ago

Orasund commented 2 years ago

I just shot myself in the foot. I wrote something like

Elm.string "(\\a -> a)"

and got

"(\a -> a)"

which throws an error, because \a is not a valid character!

So what I would have expected was to get

"(\\a -> a)"

instead.

Orasund commented 2 years ago

Can't reproduce. I'm closing the ticket until I find a code snippet that properly showcases the bug