UNPKG

420 BJavaScriptView Raw
1'use strict';
2
3/**
4 * Check whether a combinator is standard
5 *
6 * @param {import('postcss-selector-parser').Combinator} node postcss-selector-parser node (of type combinator)
7 * @return {boolean} If `true`, the combinator is standard
8 */
9module.exports = function (node) {
10 // Ignore reference combinators like `/deep/`
11 return node.type === 'combinator' && !node.value.startsWith('/') && !node.value.endsWith('/');
12};