summaryrefslogtreecommitdiff
path: root/src/bahnhofname.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/bahnhofname.gleam')
-rw-r--r--src/bahnhofname.gleam2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bahnhofname.gleam b/src/bahnhofname.gleam
index 27167a9..725d0ae 100644
--- a/src/bahnhofname.gleam
+++ b/src/bahnhofname.gleam
@@ -14,6 +14,7 @@ import gleam/map.{Map}
import gleam/uri
import gleam/hackney
import gleam/pair.{swap}
+import gleam/result
import mist
const ds100_domain = "ds100.bahnhof.name"
@@ -99,6 +100,7 @@ fn unpercent(encoded: String) -> String {
|> list.prepend(bit_string.from_string(head))
|> bit_string.concat
|> bit_string.to_string
+ |> result.map(fn (str) { string.replace(str, "_", " ") })
res
}