isCustomFunction.cjs 425 B

123456789101112131415
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. /**
  5. * Check whether a function is custom / user-defined
  6. * https://github.com/w3c/css-houdini-drafts/issues/1007
  7. * @param {string} func
  8. * @returns {boolean}
  9. */
  10. function isCustomFunction(func) {
  11. return func.startsWith('--');
  12. }
  13. module.exports = isCustomFunction;