mensch icon indicating copy to clipboard operation
mensch copied to clipboard

[Bug] The stylesheet rules is wrong when css includes :not()

Open lwenn opened this issue 2 years ago • 0 comments

Run this code:

var mensch = require('mensch');
var parsed = mensch.parse('.my-class:not(.class1, .class2) {}', {
  position: true,
  comments: true,
});

The parsed.stylesheet.rules will be an array with two items: ['.my-class:not(.class1', '.class)'], this rules are wrong. It should not be splited by , simply.

lwenn avatar Aug 29 '22 04:08 lwenn