-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Description
For some reason, I expected path segments to be decoded. Once I discovered the resulting bug in my code, I ended up using the following in place of string:
decodedString =
custom "STRING" <|
\encoded ->
case decodeUri encoded of
Nothing ->
Ok encoded
Just decoded ->
Ok decodedThe reason I considered this a bug is that I haven't thought of a case where I wouldn't use the above instead of string.
juanibiapina and benjajaja