Skip to content

Instantly share code, notes, and snippets.

@NaeosPsy

NaeosPsy/wtf.ex Secret

Created Apr 6, 2021
Embed
What would you like to do?
escaped_value =
ignore(string("\""))
|> utf8_string([not: ?"], min: 0)
|> repeat((string("\"\"")) |> utf8_string([not: ?"], min: 0))
|> ignore(string("\""))
|> reduce({Enum, :join, [""]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment