summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Thompson <andrew@hijacked.us>2014-04-09 11:39:24 -0400
committerAndrew Thompson <andrew@hijacked.us>2014-04-09 11:39:24 -0400
commit0c7fe5fc7b0296a8d18da66234f78fe67ca7f738 (patch)
treecb5ede559425c646e11bbc7597aac4f51c28b578 /src
parent47c089aa806653d826b8bc5f4b8dc29724af1da7 (diff)
parentdef6b8c98d6426430bf9de23622ff7e5b35c89ba (diff)
Merge pull request #237 from norton/norton-17
Add partial support for Erlang/OTP 17
Diffstat (limited to 'src')
-rw-r--r--src/rebar_require_vsn.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_require_vsn.erl b/src/rebar_require_vsn.erl
index 385f55c..af805c8 100644
--- a/src/rebar_require_vsn.erl
+++ b/src/rebar_require_vsn.erl
@@ -34,7 +34,8 @@
eunit/2]).
%% for internal use only
--export([info/2]).
+-export([info/2,
+ version_tuple/2]).
%% ===================================================================
%% Public API
@@ -110,7 +111,7 @@ check_versions(Config) ->
end.
version_tuple(OtpRelease, Type) ->
- case re:run(OtpRelease, "R(\\d+)B?-?(\\d+)?", [{capture, all, list}]) of
+ case re:run(OtpRelease, "R?(\\d+)B?-?(\\d+)?", [{capture, all, list}]) of
{match, [_Full, Maj, Min]} ->
{list_to_integer(Maj), list_to_integer(Min)};
{match, [_Full, Maj]} ->