securityos/node_modules/stylelint/lib/utils/isStandardSyntaxMathFunctio...

22 lines
359 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
/**
* Check whether a math function is standard
*
* @param {string} mathFunction
* @returns {boolean}
*/
module.exports = function isStandardSyntaxMathFunction(mathFunction) {
// SCSS variable
if (mathFunction.includes('$')) {
return false;
}
// Less variable
if (mathFunction.includes('@')) {
return false;
}
return true;
};