🐛 fix regex syntax (#889)
This commit is contained in:
parent
4a5cc8efa4
commit
c07e9536d6
|
|
@ -135,7 +135,7 @@ class ScopedCSS {
|
|||
}
|
||||
|
||||
// handle grouping selector, a,span,p,div { ... }
|
||||
cssText = cssText.replace(/^[^]+{/, selectors =>
|
||||
cssText = cssText.replace(/^[\s\S]+{/, selectors =>
|
||||
selectors.replace(/(^|,\n?)([^,]+)/g, (item, p, s) => {
|
||||
// handle div,body,span { ... }
|
||||
if (rootSelectorRE.test(item)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user