🐛 fix regex syntax (#889)

This commit is contained in:
howel52 2020-08-24 21:40:45 +08:00 committed by GitHub
parent 4a5cc8efa4
commit c07e9536d6

View File

@ -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)) {