You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
359 B
21 lines
359 B
'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; |
|
};
|
|
|