chore: update app.src.script
This commit is contained in:
parent
492d224728
commit
961e7b9818
|
@ -13,13 +13,12 @@ end,
|
||||||
|
|
||||||
RemoveLeadingV =
|
RemoveLeadingV =
|
||||||
fun(Tag) ->
|
fun(Tag) ->
|
||||||
case re:run(Tag, "v\[0-9\]+\.\[0-9\]+\.*") of
|
case re:run(Tag, "^[v|e]?[0-9]\.[0-9]\.([0-9]|(rc|beta|alpha)\.[0-9])", [{capture, none}]) of
|
||||||
nomatch ->
|
nomatch ->
|
||||||
Tag;
|
Tag;
|
||||||
{match, _} ->
|
_ ->
|
||||||
%% if it is a version number prefixed by 'v' then remove the 'v'
|
%% if it is a version number prefixed by 'v' or 'e', then remove it
|
||||||
"v" ++ Vsn = Tag,
|
re:replace(Tag, "[v|e]", "", [{return ,list}])
|
||||||
Vsn
|
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue