This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/stylelint/lib/utils/isStandardSyntaxMathFunction.js
2020-11-01 22:46:04 +00:00

22 lines
359 B
JavaScript

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