mirror of
https://github.com/ericchiang/pup
synced 2025-01-30 01:21:18 +00:00
comments
This commit is contained in:
parent
8bef3ef15b
commit
0a20559174
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user