elm / url

Build and parse URLs. Useful for HTTP and "routing" in single-page apps (SPAs)
https://package.elm-lang.org/packages/elm/url/latest/
BSD 3-Clause "New" or "Revised" License
75 stars 43 forks source link

Url.Parser.string does not decode the value #16

Open tomstejskal opened 5 years ago

tomstejskal commented 5 years ago

The string combinator from Url.Parser does not decode the value using Url.percentDecode. I think the implementation should be something like this:

string : Parser (String -> a) a
string =
    custom "STRING" Url.percentDecode
AlienKevin commented 4 years ago

Second that! This causes inconvenience when I have a path that contains spaces that are encoded as "%20" and never decoded back to " ".