You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
420 B
13 lines
420 B
'use strict';
|
|
|
|
/**
|
|
* Check whether a combinator is standard
|
|
*
|
|
* @param {import('postcss-selector-parser').Combinator} node postcss-selector-parser node (of type combinator)
|
|
* @return {boolean} If `true`, the combinator is standard
|
|
*/
|
|
module.exports = function (node) {
|
|
// Ignore reference combinators like `/deep/`
|
|
return node.type === 'combinator' && !node.value.startsWith('/') && !node.value.endsWith('/');
|
|
};
|