source:
trip-planner-front/node_modules/csso/lib/replace/String.js@
eed0bf8
Last change on this file since eed0bf8 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 263 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 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 | }; |
Note:
See TracBrowser
for help on using the repository browser.