mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-20 13:23:38 +12:00
8 lines
206 B
Elixir
8 lines
206 B
Elixir
|
defmodule AshHqWeb.Helpers do
|
||
|
def latest_version(library) do
|
||
|
Enum.find(library.versions, fn version ->
|
||
|
!String.contains?(version.version, ".")
|
||
|
end) || Enum.at(library.versions, 0)
|
||
|
end
|
||
|
end
|