String.js 244 B

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