You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
177 B

4 years ago
  1. function tidyAtRule(value) {
  2. return value
  3. .replace(/\s+/g, ' ')
  4. .replace(/url\(\s+/g, 'url(')
  5. .replace(/\s+\)/g, ')')
  6. .trim();
  7. }
  8. module.exports = tidyAtRule;