isCustomSelector.cjs 375 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 selector is a custom one
  6. *
  7. * @param {string} selector
  8. * @returns {boolean}
  9. */
  10. function isCustomSelector(selector) {
  11. return selector.startsWith(':--');
  12. }
  13. module.exports = isCustomSelector;