classes-to-selector.js 212 B

12345678
  1. export default 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. }