Skip to content

Commit

Permalink
Remove leading zeros in ejabberd version number to satisfy Elixir SemVer
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jul 21, 2021
1 parent 69fa79b commit cf72c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf72c5e

Please sign in to comment.