securityos/node_modules/stylelint/lib/utils/isVariable.js

12 lines
233 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
/**
* Check whether a word is a variable i.e var(--custom-property).
*
* @param {string} word
* @returns {boolean}
*/
module.exports = function isVariable(word) {
return word.toLowerCase().startsWith('var(');
};