Skip to content

Commit

Permalink
fix Erlang version parsing (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffweiss authored Jun 18, 2024
1 parent 0945cff commit 4fe43eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/bob/job/docker_checker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,12 @@ defmodule Bob.Job.DockerChecker do

defp to_matchable(string) do
destructure [version, pre], String.split(string, "-", parts: 2)
components = String.split(version, ".")

components =
version
|> String.split(".")
|> Enum.map(&String.to_integer/1)

{components, pre || []}
end

Expand Down

0 comments on commit 4fe43eb

Please sign in to comment.