Skip to content

Commit 137ca69

Browse files
authored
Improve regex scanning when listing available release files (#66)
1 parent 8f28316 commit 137ca69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xla.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ defmodule XLA do
233233
with {:ok, body} <- get(url) do
234234
# We don't have a JSON library available here, so we do
235235
# a simple matching
236-
{:ok, Regex.scan(~r/"name":\s+"(.*\.tar\.gz)"/, body) |> Enum.map(&Enum.at(&1, 1))}
236+
{:ok, Regex.scan(~r/"name":\s+"(.*\.tar\.gz)"/, body, capture: :all_but_first) |> List.flatten()}
237237
end
238238
end
239239

0 commit comments

Comments
 (0)