chore: fix the compilation error when there is "/" in the branch name
This commit is contained in:
parent
e37a70509b
commit
a76be8e0fa
|
@ -15,7 +15,7 @@ RemoveLeadingV =
|
||||||
fun(Tag) ->
|
fun(Tag) ->
|
||||||
case re:run(Tag, "^[v|e]?[0-9]\.[0-9]\.([0-9]|(rc|beta|alpha)\.[0-9])", [{capture, none}]) of
|
case re:run(Tag, "^[v|e]?[0-9]\.[0-9]\.([0-9]|(rc|beta|alpha)\.[0-9])", [{capture, none}]) of
|
||||||
nomatch ->
|
nomatch ->
|
||||||
Tag;
|
re:replace(Tag, "/", "-", [{return ,list}]);
|
||||||
_ ->
|
_ ->
|
||||||
%% if it is a version number prefixed by 'v' or 'e', then remove it
|
%% if it is a version number prefixed by 'v' or 'e', then remove it
|
||||||
re:replace(Tag, "[v|e]", "", [{return ,list}])
|
re:replace(Tag, "[v|e]", "", [{return ,list}])
|
||||||
|
|
Loading…
Reference in New Issue