Skip to content

Commit

Permalink
Improve regex scanning when listing available release files (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmag authored Dec 12, 2023
1 parent 8f28316 commit 137ca69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xla.ex
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ defmodule XLA do
with {:ok, body} <- get(url) do
# We don't have a JSON library available here, so we do
# a simple matching
{:ok, Regex.scan(~r/"name":\s+"(.*\.tar\.gz)"/, body) |> Enum.map(&Enum.at(&1, 1))}
{:ok, Regex.scan(~r/"name":\s+"(.*\.tar\.gz)"/, body, capture: :all_but_first) |> List.flatten()}
end
end

Expand Down

0 comments on commit 137ca69

Please sign in to comment.