chore: update app.src.script

This commit is contained in:
zhanghongtong 2020-07-09 14:36:07 +08:00
parent a7c4266acb
commit 0ee899d0b7
1 changed files with 9 additions and 10 deletions

View File

@ -13,13 +13,12 @@ end,
RemoveLeadingV =
fun(Tag) ->
case re:run(Tag, "v\[0-9\]+\.\[0-9\]+\.*") of
case re:run(Tag, "^\[ev0-9\]+\.\[0-9\]+\.*") of
nomatch ->
Tag;
{match, _} ->
%% if it is a version number prefixed by 'v' then remove the 'v'
"v" ++ Vsn = Tag,
Vsn
%% if it is a version number prefixed by 'v' or 'e', then remove it
re:replace(Tag, "[v|e]", "", [{return ,list}])
end
end,