Skip to content

Commit

Permalink
Merge cc6fa91 into 3d62217
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Mar 18, 2020
2 parents 3d62217 + cc6fa91 commit b4391fc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function whitespace (type) {
else
break

return token(type) > 2 || token(character) > 3 ? '' : ' '
return token(type) > 2 || character !== 42 && token(character) > 3 ? '' : ' '
}

/**
Expand Down
10 changes: 9 additions & 1 deletion test/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,16 @@ describe('Parser', () => {
* {
color:red;
}
svg {
&, & * {
fill: currentColor;
}
}
`)
).to.equal(`.user *{color:red;}`)
).to.equal([
`.user *{color:red;}`,
`.user svg,.user svg *{fill:currentColor;}`
].join(''))
})

test('flat', () => {
Expand Down

0 comments on commit b4391fc

Please sign in to comment.