数通智联化工云平台
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.

26 lines
849 B

2 years ago
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = _default;
var _isStandardSyntaxSelector = _interopRequireDefault(require("./isStandardSyntaxSelector"));
var _hasInterpolation = _interopRequireDefault(require("./hasInterpolation"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Check whether a selector is standard
*
* @param {string} selector
* @return {boolean} If `true`, the selector is standard
*/
function _default(selector) {
var standardSyntaxSelector = (0, _isStandardSyntaxSelector["default"])(selector);
// SCSS placeholder selectors
if (!standardSyntaxSelector) {
if (selector.indexOf("%") === 0 && !(0, _hasInterpolation["default"])(selector)) {
return true;
}
}
return standardSyntaxSelector;
}