From a76be8e0fa71948d16afa5c29b305934fea07133 Mon Sep 17 00:00:00 2001 From: zhanghongtong Date: Wed, 19 Aug 2020 14:44:30 +0800 Subject: [PATCH] chore: fix the compilation error when there is "/" in the branch name --- src/emqx.app.src.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqx.app.src.script b/src/emqx.app.src.script index 0355197b2..ad78864a1 100644 --- a/src/emqx.app.src.script +++ b/src/emqx.app.src.script @@ -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}])