classes-to-selector.mjs 234 B

123456789
  1. function classesToSelector(classes) {
  2. if (classes === void 0) {
  3. classes = '';
  4. }
  5. return `.${classes.trim().replace(/([\.:!+\/])/g, '\\$1') // eslint-disable-line
  6. .replace(/ /g, '.')}`;
  7. }
  8. export { classesToSelector as c };