Skip to content

Commit b46686f

Browse files
committed
feat: remove ascii escape symbols from gh run log
1 parent 36df6b2 commit b46686f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/telescope/_extensions/gh_actions.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ A.gh_run_view_log = function(opts)
284284
end
285285
local cleanmsg = function(msgtoclean)
286286
local msgwithoutdate = string.match(msgtoclean, "T%d%d:%d%d:%d%d.%d+Z(.+)$")
287+
msgwithoutdate = string.gsub(msgwithoutdate, "[\27\155][][()#;?%d]*[A-PRZcf-ntqry=><~]", "")
288+
287289
if msgwithoutdate ~= nil then
288290
return msgwithoutdate
289291
else

0 commit comments

Comments
 (0)