mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 02:37:25 -04:00
21 lines
397 B
JavaScript
21 lines
397 B
JavaScript
/* @flow */
|
|
"use strict"
|
|
|
|
const hasInterpolation = require("../utils/hasInterpolation")
|
|
/**
|
|
* Check whether a selector is standard
|
|
*/
|
|
module.exports = function (selector/*: string*/)/*: boolean*/ {
|
|
// SCSS or Less interpolation
|
|
if (hasInterpolation(selector)) {
|
|
return false
|
|
}
|
|
|
|
// SCSS placeholder selectors
|
|
if (selector.indexOf("%") === 0) {
|
|
return false
|
|
}
|
|
|
|
return true
|
|
}
|