Skip to content

Commit 6cf7878

Browse files
committed
Properly parse packages CSV
1 parent 4d6457b commit 6cf7878

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hexdocs.gleam

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ fn api_returned_packages(
147147
Ok(packages) ->
148148
packages
149149
|> string.split(on: "\n")
150+
|> list.map(fn(p) {
151+
string.split(p, on: ",") |> list.first() |> result.unwrap("")
152+
})
150153
|> model.add_packages(model, _)
151154
|> pair.new(effect.none())
152155
}

0 commit comments

Comments
 (0)