From: Ivan Tashkinov <ivant.business@gmail.com>
Date: Thu, 20 Jun 2019 14:54:16 +0000 (+0300)
Subject: Fixed mix version computed for underscore-containing branches to be of SemVer format.
X-Git-Url: http://git.squeep.com/?a=commitdiff_plain;h=f07003e2183c4e13a428614bd0ce39c9e84e2da2;p=akkoma

Fixed mix version computed for underscore-containing branches to be of SemVer format.
---

diff --git a/mix.exs b/mix.exs
index 7f8e36cbb..30584cc92 100644
--- 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