classes-to-selector.js 166 B

1234
  1. export default function classesToSelector(classes = '') {
  2. return `.${classes.trim().replace(/([\.:!\/])/g, '\\$1') // eslint-disable-line
  3. .replace(/ /g, '.')}`;
  4. }