From 56aa6515c2421e4a64a7988f6f0b705958df9591 Mon Sep 17 00:00:00 2001 From: Bai Yingjie Date: Tue, 7 Nov 2023 02:42:53 +0000 Subject: [PATCH] message tracing: fix record display for non struct text --- messagetracing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messagetracing.go b/messagetracing.go index 2aaccb4..9dbd21c 100644 --- a/messagetracing.go +++ b/messagetracing.go @@ -248,7 +248,7 @@ func ReadTracedMsg(token string) (string, error) { reEmptyStruct := regexp.MustCompile(`\{.*\}`) shortenMsg := func(msg string) string { - return reEmptyStruct.ReplaceAllString(msg, "") + "{}" + return reEmptyStruct.ReplaceAllLiteralString(msg, "{}") } fmt.Fprintln(&sb, "\nSummary(paste below content to http://www.plantuml.com/plantuml):")