Fixed branch name substitutions for mix version (to comply to SemVer format).
This commit is contained in:
parent
f07003e218
commit
259ffe0062
2
mix.exs
2
mix.exs
@ -212,7 +212,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
|
||||||
|
Loading…
Reference in New Issue
Block a user