1
0
mirror of https://github.com/ericchiang/pup synced 2025-01-30 01:21:18 +00:00
This commit is contained in:
mdrokz 2021-08-15 07:45:44 +05:30
parent 8bef3ef15b
commit 0a20559174

View File

@ -525,6 +525,7 @@ func parseNthPseudo(cmd string) (PseudoClass, error) {
}, nil
}
// check against '-n+2' pattern
r = regexp.MustCompile(`^-n[ ]?\+[ ]?([0-9])`)
subMatch = r.FindAllStringSubmatch(number, -1)
if len(subMatch) == 1 && len(subMatch[0]) == 2 {