Przeglądaj źródła

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

zhanghongtong 5 lat temu
rodzic
commit
a76be8e0fa
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/emqx.app.src.script

+ 1 - 1
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}])