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

12 lines
264 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
/**
* Check whether a function is custom / user-defined
* https://github.com/w3c/css-houdini-drafts/issues/1007
* @param {string} func
* @returns {boolean}
*/
module.exports = function isCustomFunction(func) {
return func.startsWith('--');
};