match only real pages

This commit is contained in:
Aaron Bieber 2020-02-05 08:07:29 -07:00
parent d2a3667d3d
commit 17832f3d70

View File

@ -13,7 +13,7 @@ type OpenBSDMan struct {
} }
func (h *OpenBSDMan) fix(msg string) string { 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 := "" resp := ""
section := re.ReplaceAllString(msg, "$1") section := re.ReplaceAllString(msg, "$1")
if section != "" { if section != "" {