完善截取release note的格式转换
This commit is contained in:
6
.github/workflows/getVersion.lua
vendored
6
.github/workflows/getVersion.lua
vendored
@@ -7,6 +7,10 @@ elseif arg[1]=="-updateNote"then
|
||||
local p1=note:find("\n%d")
|
||||
local p2=note:find("\n%d",p1+1)
|
||||
note=note:sub(p1,p2-2)
|
||||
note=note:gsub("\t","")
|
||||
note=note:gsub("\t\t\t\t","_")
|
||||
note=note:gsub("\t\t","")
|
||||
note=note:gsub("\n([^_])","\n\n%1")
|
||||
note=note:gsub("\n_","\n")
|
||||
note=note:gsub("\n\n","\n",1)
|
||||
print(note)
|
||||
end
|
||||
Reference in New Issue
Block a user