1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 18:49:15 +00:00

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

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