Merge branch 'mix_sem_ver_version_fix' into 'develop'

Fixed mix version computed for underscore-containing branches

See merge request pleroma/pleroma!1314
This commit is contained in:
rinpatch 2019-06-22 09:20:11 +00:00
commit 8dbcff2fed

View file

@ -213,7 +213,7 @@ defp version(version) do
true <- branch_name != "master" do true <- branch_name != "master" do
branch_name = branch_name =
String.trim(branch_name) String.trim(branch_name)
|> String.replace(~r/\W+/, "-") |> String.replace(~r/[^0-9a-z\-\.]+/i, "-")
"-" <> branch_name "-" <> branch_name
end end