Tim van der Lippe | 706ec96 | 2021-06-04 13:24:42 +0100 | [diff] [blame^] | 1 | module.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 | }; |