Просмотр исходного кода

Small correction to semver conversion for hex

Allow a lack of space in the front. This will of course need
to be handled better eventually.
Loïc Hoguin 5 лет назад
Родитель
Сommit
643ea11a1a
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      core/deps.mk

+ 5 - 1
core/deps.mk

@@ -326,7 +326,11 @@ define dep_autopatch_rebar.erl
 		end
 	end,
 	SemVsn = fun
-		("~> " ++ S) ->
+		("~>" ++ S0) ->
+			S = case S0 of
+				" " ++ S1 -> S1;
+				_ -> S0
+			end,
 			case length([ok || $$. <- S]) of
 				0 -> S ++ ".0.0";
 				1 -> S ++ ".0";