diff --git a/dist/index-umd-web.js b/dist/index-umd-web.js index 2ea8ec3..5977ec7 100644 --- a/dist/index-umd-web.js +++ b/dist/index-umd-web.js @@ -8852,7 +8852,7 @@ selector: selector.reduce((acc, curr) => { let hasCompound = true; if (hasCompound && curr.length > 0) { - hasCompound = ':' != curr[0] || !['&'].concat(combinators).includes(curr[0].charAt(0)); + hasCompound = !['&'].concat(combinators).includes(curr[0].charAt(0)); } // @ts-ignore if (hasCompound && curr[0] == ' ') { diff --git a/dist/index.cjs b/dist/index.cjs index ac769e4..74c4c95 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -8850,7 +8850,7 @@ function reduceSelector(selector) { selector: selector.reduce((acc, curr) => { let hasCompound = true; if (hasCompound && curr.length > 0) { - hasCompound = ':' != curr[0] || !['&'].concat(combinators).includes(curr[0].charAt(0)); + hasCompound = !['&'].concat(combinators).includes(curr[0].charAt(0)); } // @ts-ignore if (hasCompound && curr[0] == ' ') { diff --git a/dist/lib/ast/minify.js b/dist/lib/ast/minify.js index 6af4588..d8321ea 100644 --- a/dist/lib/ast/minify.js +++ b/dist/lib/ast/minify.js @@ -447,7 +447,7 @@ function reduceSelector(selector) { selector: selector.reduce((acc, curr) => { let hasCompound = true; if (hasCompound && curr.length > 0) { - hasCompound = ':' != curr[0] || !['&'].concat(combinators).includes(curr[0].charAt(0)); + hasCompound = !['&'].concat(combinators).includes(curr[0].charAt(0)); } // @ts-ignore if (hasCompound && curr[0] == ' ') { diff --git a/src/lib/ast/minify.ts b/src/lib/ast/minify.ts index ab23c7d..6ed0994 100644 --- a/src/lib/ast/minify.ts +++ b/src/lib/ast/minify.ts @@ -604,7 +604,7 @@ export function reduceSelector(selector: string[][]) { if (hasCompound && curr.length > 0) { - hasCompound = ':' != curr[0] || !['&'].concat(combinators).includes(curr[0].charAt(0)); + hasCompound = !['&'].concat(combinators).includes(curr[0].charAt(0)); } // @ts-ignore