From f02101efd58b2082a843948d543edc07729b02bd Mon Sep 17 00:00:00 2001 From: rsteube Date: Mon, 10 Jul 2023 15:36:28 +0200 Subject: [PATCH] fix hidden --- scrape.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scrape.go b/scrape.go index c4044c7..ab9a6fa 100644 --- a/scrape.go +++ b/scrape.go @@ -62,11 +62,10 @@ func (s scrapeXXX) formatCommand() string { snippet = re.ReplaceAllString(snippet, "") } - // if !s.cmd.Hidden { - // re := regexp.MustCompile("(?m)\n\tHidden:.*$") - // snippet = re.ReplaceAllString(snippet, "") - - // } + if !s.cmd.Hidden { + re := regexp.MustCompile("(?m)\n\tHidden:.*$") + snippet = re.ReplaceAllString(snippet, "") + } return snippet }