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
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ defp version(version) 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