chore: fix the compilation error when there is "/" in the branch name

This commit is contained in:
zhanghongtong 2020-08-19 14:44:30 +08:00 committed by tigercl
parent e37a70509b
commit a76be8e0fa
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ RemoveLeadingV =
fun(Tag) ->
case re:run(Tag, "^[v|e]?[0-9]\.[0-9]\.([0-9]|(rc|beta|alpha)\.[0-9])", [{capture, none}]) of
nomatch ->
Tag;
re:replace(Tag, "/", "-", [{return ,list}]);
_ ->
%% if it is a version number prefixed by 'v' or 'e', then remove it
re:replace(Tag, "[v|e]", "", [{return ,list}])