diff options
author | Zachary Hueras <zhueras@chitika.com> | 2015-09-16 15:19:32 -0400 |
---|---|---|
committer | Zachary Hueras <zhueras@chitika.com> | 2015-09-16 15:19:32 -0400 |
commit | 979610b44cba1feac72ce0954c66604b2f480808 (patch) | |
tree | c9f585026cd98a9b11b004a432b1f13275dc3c3b | |
parent | 49670721e1b91ae5d0a54002ea19af99c5b939b7 (diff) |
Make the v-prefix optional in git semver
Not all repositories use a v-prefix for version
tags. All tags should be considered valid
versions.
-rw-r--r-- | src/rebar_git_resource.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl index 2fc1ba9..5a24d1a 100644 --- a/src/rebar_git_resource.erl +++ b/src/rebar_git_resource.erl @@ -194,7 +194,7 @@ parse_tags(Dir) -> {error, _} -> {undefined, "0.0.0"}; {ok, Line} -> - case re:run(Line, "(\\(|\\s)tag:\\s(v([^,\\)]+))", [{capture, [2, 3], list}]) of + case re:run(Line, "(\\(|\\s)tag:\\s(v?([^,\\)]+))", [{capture, [2, 3], list}]) of {match,[Tag, Vsn]} -> {Tag, Vsn}; nomatch -> |