Skip to content

Commit

Permalink
[fmtutil/panel] Add color tag validation
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Oct 19, 2023
1 parent 91cbe72 commit 5a41b18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fmtutil/panel/panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func Panel(label, colorTag, title, message string, options ...Option) {
options = DefaultOptions
}

colorTag = strutil.B(fmtc.IsTag(colorTag), colorTag, "")

renderPanel(label, colorTag, title, message, options)
}

Expand Down

0 comments on commit 5a41b18

Please sign in to comment.