postcss-selector-parser
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,5 @@ | ||
# 1.2.1 | ||
* Fixes a crash when the parser encountered a trailing combinator. | ||
# 1.2.0 | ||
@@ -2,0 +6,0 @@ |
@@ -163,4 +163,4 @@ 'use strict'; | ||
}); | ||
while (this.position < this.tokens.length && this.currToken[0] === 'space' || this.currToken[0] === 'combinator') { | ||
if (this.nextToken[0] === 'combinator') { | ||
while (this.position < this.tokens.length && this.currToken && (this.currToken[0] === 'space' || this.currToken[0] === 'combinator')) { | ||
if (this.nextToken && this.nextToken[0] === 'combinator') { | ||
combinator.spaces.before = this.currToken[1]; | ||
@@ -167,0 +167,0 @@ combinator.source.start.line = this.nextToken[2]; |
{ | ||
"name": "postcss-selector-parser", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "babel": "^5.4.3", |
89897