Skip to content

Commit

Permalink
message tracing: fix record display for non struct text
Browse files Browse the repository at this point in the history
  • Loading branch information
Bai-Yingjie committed Nov 7, 2023
1 parent 45dc46f commit 56aa651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messagetracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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):")
Expand Down

0 comments on commit 56aa651

Please sign in to comment.