blob: ca9e60d2da330df892d9e7a0b4d753a409394ce6 [file] [log] [blame]
Tim van der Lippe706ec962021-06-04 13:24:42 +01001module.exports = function(node) {
2 var value = node.value;
3
4 // remove escaped newlines, i.e.
5 // .a { content: "foo\
6 // bar"}
7 // ->
8 // .a { content: "foobar" }
9 value = value.replace(/\\(\r\n|\r|\n|\f)/g, '');
10
11 node.value = value;
12};