Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

Commit 4ef3327

Browse files
committed
Fixed: selector was updated as an array, which is wrong.
1 parent 297488a commit 4ef3327

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# 1.2.0 - 2015-06-13
1+
# 1.2.1 - 2015-06-16
2+
3+
- Fixed: selector was updated as an array, which is wrong.
4+
5+
# 1.2.0 - 2015-06-16
26

37
- Fixed: spec has been previously misinterpreted and now transform correctly
48
`:not()` level 4 to collapsed level 3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-selector-not",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "PostCSS plugin to transform :not() W3C CSS leve 4 pseudo class to :not() CSS level 3 selectors",
55
"keywords": [
66
"postcss",

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ function explodeSelector(pseudoClass, selector) {
88
if (selector && position > -1) {
99
const pre = selector.slice(0, position)
1010
const matches = balancedMatch("(", ")", selector.slice(position))
11-
const selectors = []
1211
const bodySelectors = matches.body
1312
? list
1413
.comma(matches.body)
@@ -18,8 +17,8 @@ function explodeSelector(pseudoClass, selector) {
1817
const postSelectors = matches.post
1918
? explodeSelector(pseudoClass, matches.post)
2019
: ""
21-
selectors.push(`${pre}${pseudoClass}(${bodySelectors})${postSelectors}`)
22-
return selectors
20+
21+
return `${pre}${pseudoClass}(${bodySelectors})${postSelectors}`
2322
}
2423
return selector
2524
}

0 commit comments

Comments
 (0)