crash: render ANSI colors on crash page

Could not for the life of me get any regex to properly strip the ANSI
escape sequences, so the text log will have to suffer with them, but the
ansihtml library is now used to render them into HTML.
This commit is contained in:
Harvey Tindall
2023-06-12 15:48:07 +01:00
parent dc60e97415
commit 73202e1483
3 changed files with 14 additions and 0 deletions

2
go.mod
View File

@@ -51,7 +51,9 @@ require (
github.com/mailgun/mailgun-go/v4 v4.9.0
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/otiai10/copy v1.7.0 // indirect
github.com/pborman/ansi v1.0.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/robert-nix/ansihtml v1.0.1 // indirect
github.com/steambap/captcha v1.4.1
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.0