forked from YokaiRick/akkoma
Fixed mix version computed for underscore-containing branches to be of SemVer format.
This commit is contained in:
parent
524a66806d
commit
f07003e218
1 changed files with 1 additions and 1 deletions
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/[\W_]+/, "-")
|
||||||
|
|
||||||
"-" <> branch_name
|
"-" <> branch_name
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue