完善截取release note的格式转换

This commit is contained in:
MrZ626
2021-08-17 23:44:48 +08:00
parent bafc8abfc0
commit 9f64d84c5a

View File

@@ -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