From 5a41b18c81a1cdc92747f81d9868607ba3000757 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 19 Oct 2023 17:36:37 +0300 Subject: [PATCH] [fmtutil/panel] Add color tag validation --- fmtutil/panel/panel.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fmtutil/panel/panel.go b/fmtutil/panel/panel.go index 729ecb01..e7b363a8 100644 --- a/fmtutil/panel/panel.go +++ b/fmtutil/panel/panel.go @@ -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) }