4 const hasInterpolation = require("../utils/hasInterpolation");
6 * Check whether a selector is standard
8 module.exports = function(selector /*: string*/) /*: boolean*/ {
9 // SCSS or Less interpolation
10 if (hasInterpolation(selector)) {
14 // SCSS placeholder selectors
15 if (selector.indexOf("%") === 0) {
20 if (/:extend(\(.*?\))?/.test(selector)) {
24 // Less mixin with resolved nested selectors (e.g. .foo().bar or .foo(@a, @b)[bar])
25 if (/\.[a-z0-9-_]+\(.*\).+/i.test(selector)) {