25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Remove leading zeros in ejabberd version number to satisfy Elixir SemVer

This commit is contained in:
Badlop 2021-07-21 20:38:31 +02:00
parent 69fa79b154
commit cf72c5ee18

View File

@ -24,7 +24,7 @@ defmodule Ejabberd.MixProject do
case config(:vsn) do
:false -> "0.0.0" # ./configure wasn't run: vars.config not created
'0.0' -> "0.0.0" # the full git repository wasn't downloaded
vsn -> String.replace(:erlang.list_to_binary(vsn), ".0", ".")
vsn -> String.replace(:erlang.list_to_binary(vsn), ~r/0+([0-9])/, "\\1")
end
end