Merge branch 'mix_sem_ver_version_fix' into 'develop'
Fixed mix version computed for underscore-containing branches See merge request pleroma/pleroma!1314
This commit is contained in:
commit
8dbcff2fed
2
mix.exs
2
mix.exs
|
@ -213,7 +213,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