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.

12 lines
263 B

4 years ago
  1. module.exports = function(node) {
  2. var value = node.value;
  3. // remove escaped newlines, i.e.
  4. // .a { content: "foo\
  5. // bar"}
  6. // ->
  7. // .a { content: "foobar" }
  8. value = value.replace(/\\(\r\n|\r|\n|\f)/g, '');
  9. node.value = value;
  10. };