mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
fix: remove space between minus and CSS path in parseSelectors
This commit is contained in:
@@ -277,7 +277,7 @@ func parseSelectors(selector string) (string, []string) {
|
|||||||
includeSelector := strings.TrimSpace(parts[0])
|
includeSelector := strings.TrimSpace(parts[0])
|
||||||
var excludeSelectors []string
|
var excludeSelectors []string
|
||||||
for _, part := range parts[1:] {
|
for _, part := range parts[1:] {
|
||||||
excludeSelectors = append(excludeSelectors, strings.TrimSpace(part))
|
excludeSelectors = append(excludeSelectors, strings.TrimPrefix(part, " "))
|
||||||
}
|
}
|
||||||
return includeSelector, excludeSelectors
|
return includeSelector, excludeSelectors
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user