match only real pages
This commit is contained in:
parent
d2a3667d3d
commit
17832f3d70
@ -13,7 +13,7 @@ type OpenBSDMan struct {
|
||||
}
|
||||
|
||||
func (h *OpenBSDMan) fix(msg string) string {
|
||||
re := regexp.MustCompile(`(?i)^man: (\d?)\s?(\w+)$`)
|
||||
re := regexp.MustCompile(`(?i)^man: (\[1-9]?p?)\s?(\w+)$`)
|
||||
resp := ""
|
||||
section := re.ReplaceAllString(msg, "$1")
|
||||
if section != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user