epiphany/node_modules/stylelint/lib/utils/isVariable.js
2023-12-09 22:48:07 -08:00

11 lines
233 B
JavaScript

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