mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 23:13:22 +00:00
fix: Use - instead of ! to filter unwanted elements
This commit is contained in:
@@ -273,7 +273,7 @@ func ExtractContentWithCSS(content, selector string) (string, error) {
|
||||
|
||||
// parseSelectors splits the CSS selector string into include and exclude parts
|
||||
func parseSelectors(selector string) (string, []string) {
|
||||
parts := strings.Split(selector, "!")
|
||||
parts := strings.Split(selector, "-")
|
||||
includeSelector := strings.TrimSpace(parts[0])
|
||||
var excludeSelectors []string
|
||||
for _, part := range parts[1:] {
|
||||
|
||||
Reference in New Issue
Block a user