allow _ for spaces
(easier to use in browsers/shells where spaces lead to unwanted behaviour, e.g. starting a search or ending an argument)
This commit is contained in:
parent
6a61154bda
commit
b231e47108
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ import gleam/map.{Map}
|
||||||
import gleam/uri
|
import gleam/uri
|
||||||
import gleam/hackney
|
import gleam/hackney
|
||||||
import gleam/pair.{swap}
|
import gleam/pair.{swap}
|
||||||
|
import gleam/result
|
||||||
import mist
|
import mist
|
||||||
|
|
||||||
const ds100_domain = "ds100.bahnhof.name"
|
const ds100_domain = "ds100.bahnhof.name"
|
||||||
|
@ -99,6 +100,7 @@ fn unpercent(encoded: String) -> String {
|
||||||
|> list.prepend(bit_string.from_string(head))
|
|> list.prepend(bit_string.from_string(head))
|
||||||
|> bit_string.concat
|
|> bit_string.concat
|
||||||
|> bit_string.to_string
|
|> bit_string.to_string
|
||||||
|
|> result.map(fn (str) { string.replace(str, "_", " ") })
|
||||||
res
|
res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue