Fixed mix version computed for underscore-containing branches to be of SemVer format.
authorIvan Tashkinov <ivant.business@gmail.com>
Thu, 20 Jun 2019 14:54:16 +0000 (17:54 +0300)
committerIvan Tashkinov <ivant.business@gmail.com>
Thu, 20 Jun 2019 14:54:16 +0000 (17:54 +0300)
mix.exs

diff --git a/mix.exs b/mix.exs
index 7f8e36cbb98157ec32a52a998cede2ecd3b65ee0..30584cc92248d78b279b89be1efcc274c7ad980e 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -212,7 +212,7 @@ defmodule Pleroma.Mixfile do
            true <- branch_name != "master" do
         branch_name =
           String.trim(branch_name)
-          |> String.replace(~r/\W+/, "-")
+          |> String.replace(~r/[\W_]+/, "-")
 
         "-" <> branch_name
       end