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:
rinpatch 2019-06-22 09:20:11 +00:00
commit 8dbcff2fed
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ defp version(version) do
true <- branch_name != "master" do
branch_name =
String.trim(branch_name)
|> String.replace(~r/\W+/, "-")
|> String.replace(~r/[^0-9a-z\-\.]+/i, "-")
"-" <> branch_name
end