epiphany/node_modules/stylelint/lib/utils/isStandardSyntaxMediaFeatureName.js
2023-12-09 22:48:07 -08:00

16 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;
};