From: Ivan Tashkinov Date: Fri, 21 Jun 2019 14:19:29 +0000 (+0300) Subject: Fixed branch name substitutions for mix version (to comply to SemVer format). X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=259ffe00620ae8dd0cbfd5313024107e59f96ffc;p=akkoma Fixed branch name substitutions for mix version (to comply to SemVer format). --- diff --git a/mix.exs b/mix.exs index 30584cc92..0981ee856 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/[^0-9a-z\-\.]+/i, "-") "-" <> branch_name end