mirror of
https://github.com/ericchiang/pup
synced 2025-01-30 09:31:21 +00:00
comments
This commit is contained in:
parent
8bef3ef15b
commit
0a20559174
@ -525,6 +525,7 @@ func parseNthPseudo(cmd string) (PseudoClass, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check against '-n+2' pattern
|
||||||
r = regexp.MustCompile(`^-n[ ]?\+[ ]?([0-9])`)
|
r = regexp.MustCompile(`^-n[ ]?\+[ ]?([0-9])`)
|
||||||
subMatch = r.FindAllStringSubmatch(number, -1)
|
subMatch = r.FindAllStringSubmatch(number, -1)
|
||||||
if len(subMatch) == 1 && len(subMatch[0]) == 2 {
|
if len(subMatch) == 1 && len(subMatch[0]) == 2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user