Skip to content

Commit

Permalink
Merge pull request #172 from rsteube/fix-hidden
Browse files Browse the repository at this point in the history
fix hidden
  • Loading branch information
rsteube authored Jul 10, 2023
2 parents bd70fec + f02101e commit 671a114
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 671a114

Please sign in to comment.