securityos/node_modules/stylelint/lib/utils/isStandardSyntaxMediaFeatur...

17 lines
320 B
JavaScript

'use strict';
/**
* Check whether a media feature name is standard
*
* @param {string} mediaFeatureName
* @returns {boolean}
*/
module.exports = function isStandardSyntaxMediaFeatureName(mediaFeatureName) {
// SCSS interpolation
if (/#\{.+?\}|\$.+/.test(mediaFeatureName)) {
return false;
}
return true;
};