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

17 lines
320 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'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;
};