Fixed mix version computed for underscore-containing branches to be of SemVer format.

This commit is contained in:
Ivan Tashkinov 2019-06-20 17:54:16 +03:00
parent 524a66806d
commit f07003e218
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/[\W_]+/, "-")
"-" <> branch_name
end