Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2021-07-21 21:38:31 +0300
committerBadlop <badlop@process-one.net>2021-07-21 22:29:04 +0300
commitcf72c5ee18bac064b9a81a0260a070a3fcd2059a (patch)
tree6b65dff6e88085b9f8da177fdb7e696c22f358f0 /mix.exs
parent69fa79b1544f76c56f005b0acc9ae936e094d235 (diff)
Remove leading zeros in ejabberd version number to satisfy Elixir SemVer
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs2
1 files changed, 1 insertions, 1 deletions
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