Handle rebar3 version strings such as "3.14.1+build.4750.refd11ceb4f"

This commit is contained in:
Evgeny M
2020-09-17 08:11:00 +03:00
committed by GitHub
parent 5d23562447
commit 0d41305b1c

View File

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