From cf72c5ee18bac064b9a81a0260a070a3fcd2059a Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 21 Jul 2021 20:38:31 +0200 Subject: [PATCH] Remove leading zeros in ejabberd version number to satisfy Elixir SemVer --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 1539e6d24..3202c489d 100644 --- a/mix.exs +++ b/mix.exs @@ -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