chore: Update cssRe regular expression to include hyphen in selectors

This commit is contained in:
Max 2024-06-11 17:26:37 +08:00
parent 8583f1a0f0
commit 971246d090

View file

@ -13,7 +13,7 @@ import (
)
var slotRe = regexp.MustCompile(`\[\{([^\}]+)\}\]`)
var cssRe = regexp.MustCompile(`([\.a-z0-9A-Z# ]+)\{`)
var cssRe = regexp.MustCompile(`([\.a-z0-9A-Z-:# ]+)\{`)
// Build is the struct for the public
func (page *Page) Build(option *BuildOption) (*goquery.Document, []string, error) {