Fixed branch name substitutions for mix version (to comply to SemVer format).

This commit is contained in:
Ivan Tashkinov 2019-06-21 17:19:29 +03:00
parent f07003e218
commit 259ffe0062

View File

@ -212,7 +212,7 @@ defmodule Pleroma.Mixfile do
true <- branch_name != "master" do
branch_name =
String.trim(branch_name)
|> String.replace(~r/[\W_]+/, "-")
|> String.replace(~r/[^0-9a-z\-\.]+/i, "-")
"-" <> branch_name
end