Merge pull request #5 from brigadier/patch-1

Handle rebar3 version strings such as "3.14.1+build.4750.refd11ceb4f"
This commit is contained in:
badlop
2020-11-11 12:23:25 +01:00
committed by GitHub

View File

@@ -22,7 +22,7 @@
IsRebar3 = case application:get_key(rebar, vsn) of IsRebar3 = case application:get_key(rebar, vsn) of
{ok, VSN} -> {ok, VSN} ->
[VSN1 | _] = string:tokens(VSN, "-"), [VSN1 | _] = string:tokens(VSN, "-+"),
[Maj, Min, Patch] = string:tokens(VSN1, "."), [Maj, Min, Patch] = string:tokens(VSN1, "."),
(list_to_integer(Maj) >= 3); (list_to_integer(Maj) >= 3);
undefined -> undefined ->