aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Tashkinov <ivant.business@gmail.com>2019-06-21 17:19:29 +0300
committerIvan Tashkinov <ivant.business@gmail.com>2019-06-21 17:19:29 +0300
commit259ffe00620ae8dd0cbfd5313024107e59f96ffc (patch)
tree952b9e676c7b2813164f67ea1f23874d17eedfe7
parentf07003e2183c4e13a428614bd0ce39c9e84e2da2 (diff)
downloadpleroma-259ffe00620ae8dd0cbfd5313024107e59f96ffc.tar.gz
Fixed branch name substitutions for mix version (to comply to SemVer format).
-rw-r--r--mix.exs2
1 files changed, 1 insertions, 1 deletions
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