From 0a205591741b0e972163860a16a9d09201cc0fce Mon Sep 17 00:00:00 2001 From: mdrokz <33598169+mdrokz@users.noreply.github.com> Date: Sun, 15 Aug 2021 07:45:44 +0530 Subject: [PATCH] comments --- selector.go | 1 + 1 file changed, 1 insertion(+) diff --git a/selector.go b/selector.go index 728981b..c8f0b98 100644 --- a/selector.go +++ b/selector.go @@ -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 {